I have created a workflow that uses the HTTP Request Action to create ServiceNow REQ’s. I have noticed that when trying to pass an identity attribute in the body of the HTTP Request, it is showing the variable name instead of the actual value:
{{$.trigger.identity.attributes.firstname}}
Here is the body of the request:
              "jsonRequestBody": {
                "items": [
                  {
                    "sysparm_id": "samplesysparmid545",
                    "variables": {
                      "description": " SailPoint Department Name Change",
                      "opened_by": "test1234567",
                      "req_description": "Service Request created by SailPoint ",
                      "requested_for": "test123456",
                      "short_description": "SailPoint Access Request Change in Department Name {{$.trigger.identity.attributes.firstname}}"
                    }
                  }
                ]
              }
When i change the variable name to: {{$.trigger.identity.name}}, that gets displayed properly in the ServiceNow REQ, but i need to be able to use different identity attribute values on the triggered identity.
There must be a different way you need to set identity attribute values when using a nested json object.