Triggering workflows through API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mark
    Senior Member
    • Dec 2019
    • 143

    Triggering workflows through API

    Hi,
    I wanted to ask whether it is possible to trigger workflows through API?
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Hi Mark,

    For manual workflow trigger type:

    POST api/v1/WorkflowManual/action/run

    Code:
    {
        "id": "workflow-record-ID",
        "targetId": "target-record-ID"
    }
    Or you can just have a workflow that is triggered on a record creation and create records with the standard REST API POST call.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...