Assign Requesters


You can find more examples at the Automation Rules page


How to apply this rule?

Prerequisites: IDs of Requesters

Some of these examples contain IDs of the Requesters as parameters. When you modify assignments of Requesters you have to pass proper numeric ID of a chosen requester in your POST calls. IDs can be obtained from the Requesters views or from the system directly.


Get IDs of Requesters

Use special GET call to API to obtain numeric IDs of Requesters from your system.

/api/v1/Requesters?include=[Id,FirstName,LastName,Email]&where=LastName contains "Smith"

Assign a default requester to newly created Requests

    "type": "source:targetprocess:EntityChanged",
    "entityTypes": [
    "modifications": {
      "created": true,
      "deleted": false,
      "updated": false
    "type": "action:JavaScript",
    "script": "return {\n  command: \"targetprocess:UpdateResource\",\n  payload: {\n    resourceType: args.ResourceType,\n    resourceId: args.ResourceId,\n    fields: {\n      \"Requesters\" : \n        [\n          { \"Id\": 120 }, // add/modify Requesters here\n          { \"Id\": 18 }\n        ]\n    }\n    }\n  }\n"