• SF_Chimp
  • NEWBIE
  • 25 Points
  • Member since 2013

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 3
    Replies
Just wondering what are production issues one faces with triggers and how to troubleshoot them.

Hi,

 

I have a requirement to change the parent of an email-to-case attachment to a custom object when the case is created.

 

The flow is as follows.

 

1. An email-to-case case with record type Master__c record is created

2. Check if it has an attachment.

3. If attachment is present, created a custom object, Attach_Secure__c, record is created.

4. Make Attach_Secure__c parent of the attachment

 

Any idea of how to implement this trigger?

 

Thanks for help 

Hi,

 

I have a requirement to change the parent of an email-to-case attachment to a custom object when the case is created.

 

The flow is as follows.

 

1. An email-to-case case with record type Master__c record is created

2. Check if it has an attachment.

3. If attachment is present, created a custom object, Attach_Secure__c, record is created.

4. Make Attach_Secure__c parent of the attachment

 

Any idea of how to implement this trigger?

 

Thanks for help 

I am new to apex and wondering if someone can show me how to create a cross object trigger to update Contact Status to Inactive and open Opportunities to Closed Lost when Account Status is changed to Cancelled.

 

Thank you in advance for your help.

 

CWoo

  • September 22, 2013
  • Like
  • 0