Morning,
I have created an app with a webhook and managed to install it into out portal.
When I trigger the required event, it seems to work, with the payload being received that the URL I specified.
The payload looks like this:
[
{
"objectId": 5151,
"propertyName": "my_custom_property",
"propertyValue": "15:11:03 GMT",
"changeSource": "BATCH_UPDATE",
"eventId": xxxxxxx,
"subscriptionId": xxxxxx,
"portalId": xxxxxxx,
"appId": xxxxxxx,
"occurredAt": 1565104265799,
"subscriptionType": "contact.propertyChange",
"attemptNumber": 0
}
]
I would like the value of another property included in this payload. Something like:
[
{
"objectId": 5151,
"propertyName": "my_custom_property",
"propertyValue": "15:11:03 GMT",
"otherPropertyName": "my_custom_identifier",
"otherPropertyValue": "xxx-999999-aaa-777",
"changeSource": "BATCH_UPDATE",
"eventId": xxxxxxx,
"subscriptionId": xxxxxx,
"portalId": xxxxxxx,
"appId": xxxxxxx,
"occurredAt": 1565104265799,
"subscriptionType": "contact.propertyChange",
"attemptNumber": 0
}
]
How can I do this?
I could not find anything in the official docs.
The second property won’t be being updated, so I don’t believe adding that as a trigger will work.
Regards
Jez D