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
Nuevo9763Nuevo9763 

multiple actions in workflow

I am a newbie to SF. I have a workflow rules setup for email alert, I need to also make external api call to Gravity Forms to update some fields.
Is it possible to make the api call using a 'New Outbound message' as second action in the same workflow rule and achieve this? So basically without involving any Apex class can I do this?
Is there any other better solution?
Thanks in advance.
Andrew EchevarriaAndrew Echevarria
This isn't possible, but you can make an Apex trigger. This documentation explains how;
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_qs_trigger.htm
Nuevo9763Nuevo9763
Thanks Andrew. .
So if I write this trigger for opportunity object can I invoke that trigger from WF rule or process builder? Or to invoke this trigger I need some kind of field update action?
Andrew EchevarriaAndrew Echevarria
Right, you can set the trigger to invoke under the same action that triggers a WF rule--typically a field update. When the field changes, the trigger runs.