You need to sign in to do that
Don't have an account?
Andréa de Faria
Prevent Moving Stage based on Status in a related event
Hello, How are you?
Please, I would like to know if you could help me with the following: how can I prevent the Opportunity Owner from moving an Opportunity from Stage A to Stage B if the field C in the Event related to the Opportunity is different from D.
Being the the field C is a picklist and D is a string?
Thank you a lot!
Please, I would like to know if you could help me with the following: how can I prevent the Opportunity Owner from moving an Opportunity from Stage A to Stage B if the field C in the Event related to the Opportunity is different from D.
Being the the field C is a picklist and D is a string?
Thank you a lot!
Try Below Trigger Please Mark It As Best Answer If It Helps
Thank You!
All Answers
Try Below Trigger Please Mark It As Best Answer If It Helps
Thank You!
It really blocked the Opportunity Owner from moving to the next stage, however, and I go to the Event Page and try to update field C (in order to meet the criteria to move to the next stage), it shows the following error:
We can't save this record because the “Event” process failed. Give your Salesforce admin these details. This error occurred when the flow tried to update records: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: OppTrigger: execution of BeforeUpdate caused by: System.SObjectException: SObject row was retrieved via SOQL without querying the requested field: Event.Field_C__c (). You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1662549184-86665 (838309929)ook up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1662549184-86665 (838309929)
Am I doing something wrong?