• ravinv
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 7
    Replies

Hi everyone,

 

I am very new in Apex trigger development and I need some help for a trigger to be created to check and update the Contact fields on the Case object based on a custom field I created; E_mail.

 

Basically, it's something like what happens via Email to Case, where SuppliedEmail is checked in Contacts and populates the Contact Fields in Case object. In my case here, I want E_mail to be used to check and update the Contact fields if available, else, do nothing.

 

Thanks a lot.

  • February 29, 2012
  • Like
  • 0

Hi everyone,

 

I just started using couple months ago and now have just started exploring triggers.

I am looking to create new lead records after case has been closed if it fulfills certain criterias.

Hope someone could help me out here; details are as below.

 

To create new Lead record when from Case object:-

 

Status=Closed

and

Receive_survey_form_future_promotions__c=True

and

(E_mail_c or SuppliedEmail)!=null

 

The Lead record field name mapping for insertion are as follows:-

From Case object ==> To Lead object

Name_c or SuppliedName ==> LastName

E_mail_c or SuppliedEmail ==> Email

Contact_Number__c ==> MobilePhone

 

Lead status will always be New.

Lastly, the lead will only be created if a search based on the email from (E_mail_c or SuppliedEmail) isn't existant in any Lead records.

 

Hope to hear from someone and thanks in advance.

 

P.S. Just wondering, can an email message be triggered to a particular default email if the Lead record isn't created due to its existance in Lead already?

 

Regards,

Ravin

  • February 21, 2012
  • Like
  • 0

Hi everyone,

 

I just started using couple months ago and now have just started exploring triggers.

I am looking to create new lead records after case has been closed if it fulfills certain criterias.

Hope someone could help me out here; details are as below.

 

To create new Lead record when from Case object:-

 

Status=Closed

and

Receive_survey_form_future_promotions__c=True

and

(E_mail_c or SuppliedEmail)!=null

 

The Lead record field name mapping for insertion are as follows:-

From Case object ==> To Lead object

Name_c or SuppliedName ==> LastName

E_mail_c or SuppliedEmail ==> Email

Contact_Number__c ==> MobilePhone

 

Lead status will always be New.

Lastly, the lead will only be created if a search based on the email from (E_mail_c or SuppliedEmail) isn't existant in any Lead records.

 

Hope to hear from someone and thanks in advance.

 

P.S. Just wondering, can an email message be triggered to a particular default email if the Lead record isn't created due to its existance in Lead already?

 

Regards,

Ravin

  • February 21, 2012
  • Like
  • 0