Inbound REST API to trigger a workflow (How To)?

Michael M1
Giga Expert

I have an inbound REST API call that sends my instance a user_id. This should start a workflow that will perform several actions. 

What is the best way to initiate this? Do I create an event? How do I get the user name information into the workflow?

1 ACCEPTED SOLUTION

You can trigger your workflow based on conditions. So if you can send specific data in your REST call to match the conditions, then it will start your workflow automatically.

find_real_file.png

View solution in original post

3 REPLIES 3

Alikutty A
Tera Sage

Hello,

On what table does the workflow executes? You can setup a table with User Id as a column and Table API can be used to add records in it.

Your workflow can start when record is inserted in this table with a valid user or some similar condition to trigger it. In this way you could access the user in your workflow by dot-walking the current record.

Thanks!

So i can make a table and insert the REST call into that...

Then how to call the workflow? I assume Business Rule in the Advanced (script) section - but I can initiate a specific workflow that can be tracked via context?

You can trigger your workflow based on conditions. So if you can send specific data in your REST call to match the conditions, then it will start your workflow automatically.

find_real_file.png