• Austin Johnsey
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
I have an identical custom field (Site_ID__c) on leads, contacts, opportunities and tasks. When a task is created and related to one of these objects, I would like a trigger that would update the field on the task from the field on the related object. Does anyone have a code template for listing the whatids, determining the object type and then specifying the custom field to update? Ideally, the code would repeat the process for all 3 possible objects in this scenario.