function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
grandmastergrandmaster 

How to update Contact field when Account Team Member is updated, deleted, inserted?

Hi 

 

I am trying to figure out the way how I can update a field on a Contact object, whenever the contact's account's account team member (User) is created (inserted), edited (updated) or removed (deleted) .

 

I realized that Workflows dont support this.

 

I also realized that it is not possible to create a Trigger on the AccountTeamMember child object as SF doesn't seem to allow creation of triggers on child objects.

 

In that case, what is the best way to handle this scenario? Any suggestions/thoughts?

 

Thanks

 

SfdcStevenSfdcSteven

You can create triggers on child objects, just not AccountTeamMember at this time. Enabling custom fields, workflow, and apex triggers on AccountTeamMember is on the roadmap, but upgrading these objects to be first class like we did with OpportunityTeamMember is no small feat.

 

Sorry,

-Steven

grandmastergrandmaster

I'm on a wild goose chase on this and the only silver lining in the Salesforce cloud I can see here is using an Apex Batch class where I can probably write the logic.

 

By the way, is this feature coming in the next release?

 

Thanks

gm