• chiranth
  • NEWBIE
  • 4 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 19
    Questions
  • 14
    Replies

Hi is there any video tutorial which help us learning the set up of live agent

I have a picklist field called Type with the values 1,2,3,4,5,6,7,8,9,10.

I have one formula field calles status.

 

I need to display values 1,2,3,4 in Type Picklist field when status is open.

I need to display values 5,6,7,8 in Type Picklist field when status is closed.

I need to display values 9,10 in Type Picklist field when status is Re Opened.

 

Status is a formula field.

Hi

 

List view is changing after reloading the page.

 

Example :

 

Once u log in, click on cases there will be a default list view.

step 1: select List view1 on cases. Refresh the page It will be on the same list view.

step 2: After refreshing select List view 2, and again refresh the page, It will take u the list view 1.

step : Now again Select List View 3, Refresh the page , It will take you to the List view 1.

 

 

IS it possible to control the List view change. Please help me on this.

 

Thanks

 

Need to create a Custom button on the related list to add the existing record.

 

Please help me on this!

thanks.

HI

 

I have 3 types of list view on case.

1. List view one.

2. List view two.

3.List vies three.

 

I have created a custom list button. I haved placed it on the search layout.

I want to display this button only  when the user selects the List view One on cases.

I dont want to display this button on the List View two and Three.

 

Is this possible ?

 

Im using URL Hacking to pre populate the custom fields.  Its working fine with the object which does not have a record type.

 

I have created a custom object for this.

 

How to do this on the object which have a record type.??

When a user is sending an email from a case, the senders email address should be based on the case record type.  If the case record type is returns, then it should be returns@Test.com. If recor dtype is test then it should be test@test.com.

 

How can this be done ?? Please help me on this.

 

Thanks

Hi 

 

I need to write a trigger to update a text field when a look field is selected.

Requirement :

When creating a task record : If case is selected in Related To field then I need to autopopuate a account name(Text Field) of the case  selected.

 

Field one : Related To(Lookup)

Field two: Account Name (Text Field):

If related to case number auto poplate the account name of the selected case.

 

Please help me on this.

Thanks

 

Hi the below code is assinging the case to the loged in user . It works fine when the detail button is created with the javascript code but its not working when the list button is created with the same code[It will enter the else loop].

 

{!REQUIRESCRIPT("/soap/ajax/13.0/connection.js")} 

var caseid = "{!Case.Id}"; 
var userid = "{!$User.Id}"; 
var CaseToUpdate = new sforce.SObject("Case"); 
CaseToUpdate.set("Id", caseid); 
CaseToUpdate.set("OwnerId", userid); 
var Result = sforce.connection.update([CaseToUpdate]); 
if(Result[0].getBoolean("success")) 

function redirect() { parent.frames.location.replace("/{!Case.Id}"); } 
redirect(); 

else { 
alert("Error"); 
}

 

 

 

Please help me on this

Thanks

HI

 

I have three lookup fields

1.Sales 

2.Account

3.Contact 

While creating a record if I select sales lookup field , I need to populate account and contact lookup field based on the sales record selected

 

Please help me on this.

 

Thanks

 

 

trigger EmailNotificationForQuote on Case (after insert, after update) {
set<id> se1=new set<id>();
List<Case> c1=new List<Case>();


for (Case c : Trigger.new)
{
se1.add(c.Id);
}
if(se1.size() > 0)
{
c1=[Select id,Case_Record_Type__c,Quote_Number__c,testtext__c,testDifferenceDate__c from Case where id IN:se1];

for(Case newCase:c1 ){
System.debug(Trigger.new.size()+'------chiru--');
System.debug(newCase+'------chiranth--');
if(newCase.Case_Record_Type__c =='Quotes' && newCase.Quote_Number__c !=null&& newCase.testtext__c=='Incoming'&& newCase.testDifferenceDate__c==2){
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
String[] toAddresses = new String[] {'tets@gmail.com'};
mail.setToAddresses(toAddresses);
string subject='Hi';
string body='Hw ttttttttttttttttttttttttttttt u';
mail.setSubject(subject);
mail.setPlainTextBody('Hhhhhhhhhhhhhhhhh');
mail.setHtmlBody(body);
Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
newCase.Sub_Status__c='Follow-Up';

}


}
update c1;
}


}

 

Please help me on this.

Thanks

Hi 

 

I have written the below trigger on case, If i edit or create a new with a given condition im getting a two mail alert. Please help me on this.

 

trigger EmailNotificationForQuote on Case (after insert, after update, before insert,before update) {
for(Case newCase: Trigger.new){
System.debug(Trigger.new.size()+'------test--');
System.debug(newCase+'------testing--');
if(newCase.Status=='Open'){
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
String[] toAddresses = new String[] {'test@gmail.com'};
mail.setToAddresses(toAddresses);
string subject='Hi';
string body='Hw ttttttttttttttttttttttttttttt u';
mail.setSubject(subject);
mail.setPlainTextBody('Hhhhhhhhhhhhhhhhh');
mail.setHtmlBody(body);
Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });

}
}
}

 

 

Thanks 

Hi

 

Since my workflow limit has exceeded, Need to write a trigger which  sends a email notification.
Scenario :Send notification  to customer 3 days after the quote is sent to the customer and if the customer has not responded to the case via email. 

 

I have a date which has quote sent date. I'm tracking customer response in some field.

Need to send email alert when Today - Quote sent date > 3 days.

Please help me on this

Thanks

Hi I have written a email Notification trigger. Image is not displaying in the mail that is company logo. 
Please find the below code for more info.

 

 

trigger sendemailwithattachment on opportunity (after insert,after update){
for(opportunity oppr : Trigger.new){
System.debug('--------------------'+oppr );
if(oppr.Record_Type_Name__c=='Recors type1'){
if(oppr.StageName=='Closed Won'){
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
String[] toAddresses = new String[] {'test@gmail.com'};
mail.setToAddresses(toAddresses);
string htmlHeader = '<html><head>'
+'<body><table>'
+'<apex:image src="{!$Resource.Logo}" width="100" height="70" align="right"/>'
+'<tr><hr width="800" color="red" height="10"/></tr>'
+' </table></head></body></html>';
string htmlbody='contract completion:' +Oppr.Name;
mail.setHtmlBody(
htmlHeader+htmlbody);
//Set email file attachments
List<Messaging.Emailfileattachment> fileAttachments = new List<Messaging.Emailfileattachment>();
for (Attachment a : [select Name, Body, BodyLength from Attachment where ParentId = :oppr.Id]){
// Add to attachment file list
Messaging.Emailfileattachment efa = new Messaging.Emailfileattachment();
efa.setFileName(a.Name);
efa.setBody(a.Body);
fileAttachments.add(efa);
}
mail.setFileAttachments(fileAttachments);
Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
}
}
}
}

Hi all,

 

How to use the html template in the apex trigger which is used to send the email notification.

I need to use the company logo in that notification.

Plz help me on this.

 

Thanks

Hi

 

 

I have created one queue, I dont want the user to select tthat queue as case owner.

I dont want this queue to be visible when user selects the case owner.

Plz help on this.

 

 

Thanks

Hi

 

In opportunity object i need to write apex trigger to send a email notification if stage is closed won and RecordType name is xyz.

Im not able to match the record type name, since I have 10 record type, I need to send a email based on the record type.

Plz help on this.

Thanks

Hi all,

 

I have created a workflow on opportunity,  When the stage equals closed won email is sending to some users,

I need to send the notes and attachments of the opportunity with that email notification!!
Is it possible in the work flow??
Plz help on this...

 

Thanks

Hi all,

 

I have some 5 record types on the case, Not able to see the stadard picklist field 'Status' on the record types.

Please give some solution, I need to edit the picklist value so that reassign the existing picklist value to the record types.

I have a picklist field called Type with the values 1,2,3,4,5,6,7,8,9,10.

I have one formula field calles status.

 

I need to display values 1,2,3,4 in Type Picklist field when status is open.

I need to display values 5,6,7,8 in Type Picklist field when status is closed.

I need to display values 9,10 in Type Picklist field when status is Re Opened.

 

Status is a formula field.

Hi

 

List view is changing after reloading the page.

 

Example :

 

Once u log in, click on cases there will be a default list view.

step 1: select List view1 on cases. Refresh the page It will be on the same list view.

step 2: After refreshing select List view 2, and again refresh the page, It will take u the list view 1.

step : Now again Select List View 3, Refresh the page , It will take you to the List view 1.

 

 

IS it possible to control the List view change. Please help me on this.

 

Thanks

 

When a user is sending an email from a case, the senders email address should be based on the case record type.  If the case record type is returns, then it should be returns@Test.com. If recor dtype is test then it should be test@test.com.

 

How can this be done ?? Please help me on this.

 

Thanks

Hi the below code is assinging the case to the loged in user . It works fine when the detail button is created with the javascript code but its not working when the list button is created with the same code[It will enter the else loop].

 

{!REQUIRESCRIPT("/soap/ajax/13.0/connection.js")} 

var caseid = "{!Case.Id}"; 
var userid = "{!$User.Id}"; 
var CaseToUpdate = new sforce.SObject("Case"); 
CaseToUpdate.set("Id", caseid); 
CaseToUpdate.set("OwnerId", userid); 
var Result = sforce.connection.update([CaseToUpdate]); 
if(Result[0].getBoolean("success")) 

function redirect() { parent.frames.location.replace("/{!Case.Id}"); } 
redirect(); 

else { 
alert("Error"); 
}

 

 

 

Please help me on this

Thanks

trigger EmailNotificationForQuote on Case (after insert, after update) {
set<id> se1=new set<id>();
List<Case> c1=new List<Case>();


for (Case c : Trigger.new)
{
se1.add(c.Id);
}
if(se1.size() > 0)
{
c1=[Select id,Case_Record_Type__c,Quote_Number__c,testtext__c,testDifferenceDate__c from Case where id IN:se1];

for(Case newCase:c1 ){
System.debug(Trigger.new.size()+'------chiru--');
System.debug(newCase+'------chiranth--');
if(newCase.Case_Record_Type__c =='Quotes' && newCase.Quote_Number__c !=null&& newCase.testtext__c=='Incoming'&& newCase.testDifferenceDate__c==2){
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
String[] toAddresses = new String[] {'tets@gmail.com'};
mail.setToAddresses(toAddresses);
string subject='Hi';
string body='Hw ttttttttttttttttttttttttttttt u';
mail.setSubject(subject);
mail.setPlainTextBody('Hhhhhhhhhhhhhhhhh');
mail.setHtmlBody(body);
Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
newCase.Sub_Status__c='Follow-Up';

}


}
update c1;
}


}

 

Please help me on this.

Thanks

mass delete custom object records in Professional

Hi All ,

 

  I want to prevent some mail to create case in sfdc.Is there any way please suggest me ,Waiting for ur response.

 

 

Thanks

Smau

  • September 06, 2012
  • Like
  • 0

Hi all,

 

I have created a workflow on opportunity,  When the stage equals closed won email is sending to some users,

I need to send the notes and attachments of the opportunity with that email notification!!
Is it possible in the work flow??
Plz help on this...

 

Thanks

Hi all,

 

I have some 5 record types on the case, Not able to see the stadard picklist field 'Status' on the record types.

Please give some solution, I need to edit the picklist value so that reassign the existing picklist value to the record types.