I have created an automation rule, where it is triggered on the update of an object
I am trying to add an asset attribute value (RecId)to the end of a url and send the values of any asset attributes (attribute Name & attribute Value) that have been updated via the http request. (When I hardcode the values the post is sent, so the connection is working) What do I need to change to get the actual values of the attributes returned?
The configuration of my rule is as follows
Action: Http Request
Url: https:/xxxxx.com/services/../../../{{asset.RecId}}
userName: xxxx
Password: xxxx
Http method: POST
Post Data:
{ "objectId": "{{asset.object.id}}", "objectName": "{{asset.object.name}}", "updatedAttributes": [ { "attributeName": "{{asset.attribute.name}}", "newValue": "{{asset.attribute.value}}" } ] }
The log is returning:
AutomationRuleHttpRequestAction action data after replacing placeholders: {"url":"
https://xxx/xx/xx/{{asset.RecId}}","method":"POST","postData":"{\n \"objectId\": \"{{asset.object.id}}\",\n \"objectName\": \"{{asset.object.name}}\",\n \"updatedAttributes\": [\n {\n \"attributeName\": \"{{asset.attribute.name}}\",\n \"newValue\": \"{{asset.attribute.value}}\"\n }\n ]\n}\n","username":null,"password":"***”}