> For the complete documentation index, see [llms.txt](https://docs.work-relay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.work-relay.com/automations/global-actions-and-action-groups/using-actions/how-to-execute-action-or-action-group-from-the-salesforce-process-or-workflow.md).

# How to execute Action or Action Group from the Salesforce process or workflow

You can trigger Work-Relay Action or Work-Relay Action Group from your Salesforce Process or Flow.

{% hint style="info" %}
Create an Action/Action group you want to execute from the Process/Flow. See details at [Introduction to actions and action groups](/automations/global-actions-and-action-groups/basics/introduction-to-actions-and-action-groups.md)
{% endhint %}

* Add new Action to your Salesforce Process/Flow with type set to '**Apex**'.
* Select '**Execute Work-Relay Action**' as an Apex Class.
* **The Action/Group ID or Name** - pass Action/Action Group Id or Name.
* **The Source Record ID** - If your action have source object you should pass source record Id.
* **The Initial Variables** - pass variables to you Action in JSON format.

![](/files/8ac324fe997ea280e4d60ecd16e4fed59e83606b)

In Salesforce Flow make sure to create variables to pass them to the action as parameters:

![](/files/d8f57f88ec71840e35d5f931437561d6c41cc814)

![](/files/ce51bdaf5727468a079b86c4c1a34be7a8d4c3d0)

![](/files/5f3b175c78c0bfa3fae83cfcdf408be3e502b752)

![](/files/a3d010bbb0529be85ad6d6d7a8e29278ecfd37b7)
