> 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/api/running-work-relay-api-from-salesforce-flow.md).

# Running Work-Relay API from Salesforce flow

You can trigger WR API from your Salesforce Flow.

{% stepper %}
{% step %}

## Create a Salesforce flow

Create a SalesForce flow and add all necessary steps.
{% endstep %}

{% step %}

## Add the Work-Relay API action

Create a new action, type `API` to search the input, and select Work-Relay API.

![](/files/daa4c0245079ea5e3a56dc4a229bdbaea8928fdc)
{% endstep %}

{% step %}

## Configure the action

Provide an action Label and API Name. Check `Include` for the `Set Input Values for the Selected Action` setting, then provide parameters.

![](/files/9fa526b054c9402f5fe6c8ebff9cbaa89996952b)
{% endstep %}

{% step %}

## Pass parameters to the WR\_API class

Follow the template below to pass parameters to the `WR_API` class:

* `"class"` - API class name
* `"method"` - API method name
* `"parameters"` - parameters in a JSON format

Example parameters string:

{% code overflow="wrap" %}

```json
{"class":"WorkflowService", "method":"changeAssignee","parameters":{"cursorId":"{!cursors_loop.Id}", "assigneeType":"User", "assignee":"{!$Record.Assigned_User__c}"}}
```

{% endcode %}
{% endstep %}
{% endstepper %}
