+ Start a Discussion
Ashique Khan 7Ashique Khan 7 

How can I updated the related to ID from account to opportunity (created by a process) on an event ?

I have a process that creates a new Opportunity when a new Event is created where there are no open Opporunities under the Account. However, the related to field on the Event defaults to the Account. How can I automate this to update the related to ID to the new Opportunity ID?
PRABHAKARAN CHOCKALINGAMPRABHAKARAN CHOCKALINGAM
Please post the code that creates the opportunity, so that we can update it to change the relatedTO to Opportunity.
Ashique Khan 7Ashique Khan 7
It's built through a workflow (process builder) so no code available.