• Sujit Nirkhe
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 5
    Replies

I want to create controller and dependent picklists in flows.

Controlling picklist will be controlling the values available in dependent picklist.

For ex:

Controlling picklist have following values:A,B,C

Dependent picklist have following values:1,2,3,4,5,6,7,8,9

For A in first Picklist available values in another picklist should be-1,2,3

For B in first Picklist available values in another picklist should be-4,5,6

For C in first Picklist available values in another picklist should be-7,8,9

It is more preferable to have them on single screen.

 

Hi,

The following is the content of my email template, and my template name is "Case email"

"Thanks , Your case number is {!Case.CaseNumber}"


And my Apex Trigger to send the email, when the case is created.

 

trigger mailNotification on Case ( after insert) {
    contact CaseContact;
    
    for(case Cases :trigger.new){
                    //Fetch the related case contact.
                CaseContact = [SELECT Email FROM Contact WHERE Id = :Cases.ContactId];
                if (CaseContact != null && CaseContact.Email != null) {
    Messaging.SingleEmailMessage CaseNotificationmail = new Messaging.SingleEmailMessage();
    EmailTemplate template = [SELECT Id, Subject, HtmlValue, Body FROM EmailTemplate WHERE Name = 'Case Email '];
    CaseNotificationmail.setToAddresses(new List<String> { CaseContact.Email });
    CaseNotificationmail.setReplyTo('someone@salesforce.com');
    CaseNotificationmail.setSenderDisplayName('Salesforce Support');
    CaseNotificationmail.setTargetObjectId(CaseContact.Id);
    CaseNotificationmail.setTemplateId(template.id);
    Messaging.sendEmail(new Messaging.SingleEmailMessage[] { CaseNotificationmail });
 } 
  
}

}

  after creating the case, It sends the mail, but It does nt show the case number.

 

Can anybody help for this?

 

Regards.,

Ambiga.R

Hi,

I know this is beta but this might be a bug...or maybe just me.

 

I am trying to integrate with an external system and the information I have from the external system is the BillingCountry and the BillingStateCode. I do not have the BillingState from my external system, just the code. Therefore, I am trying to create an account using the folowing:

 

Account a = new Account(Name='TestHugo', BillingCountry='Canada', BillingStateCode = 'QC');
INSERT a;

 

However I get this error:
FIELD_INTEGRITY_EXCEPTION, A country must be specified before specifying a state value for field: [BillingStateCode]

Do you know if this is a bug or if I am just not using it the right way.

 

Any ideas?

hi folks,

 

i have a custom object, booking__c that has a lookup to contact. i want a related list on booking__c that shows the activity history for the contact. is that possible?

 

thanks

 

dustin

Hi all, I'm trying to run a simple trigger before delete. The error I'm getting is:

System.NullPointerException: Attempt to de-reference a null object


Code:
trigger deleteMultiday on SFDC_Special_Event__c (before delete) {

        for (SFDC_Special_Event__c co : Trigger.new)
        {

        }//end main for

}//end trigger

 I originally had logic in the loop but removed it to see if it was causing the error. But the error is still showing with this code. The above code works perfectly in insert/update triggers.