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
benwrigleybenwrigley 

How to trigger workflow from a custom button

HI There,

We need a way to run a workflow rule from a custom button. According to support there is a way to do this with an s-control.

Can anyone give me any pointers?

Thanks
RajaramRajaram
To trigger workflow you need to do a record save either through the API or the UI.
wgrwgr
Yes - you may update a flag within the s-control. The flag can then be used as a trigger for the workflow.
trahmantrahman
Did you figure out how to do this? I have a similar situation where i would like to have a button to trigger a workflow. Thanks