Add another contact property to the webhook payload

SOLVE
Regular Contributor

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

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Highlighted
Community Manager

Hi @Jez_D,

 

I hope all is well with you Smiley Happy

 

Currently, it would not be possible to include another property in the payload. The payload will only include the property and property value that you have subscribed to.

 

That said, if the second property will not get updated, maybe one way to go about getting details of the second property is to get the vid ID (which is the objectId) > if it is a contact, you can use the get contact by its vid endpoint to get all the information of the single contact. This provide you with the most information as possible.

 

Hope this helps to clarify!

1 Reply 1
Highlighted
Community Manager

Hi @Jez_D,

 

I hope all is well with you Smiley Happy

 

Currently, it would not be possible to include another property in the payload. The payload will only include the property and property value that you have subscribed to.

 

That said, if the second property will not get updated, maybe one way to go about getting details of the second property is to get the vid ID (which is the objectId) > if it is a contact, you can use the get contact by its vid endpoint to get all the information of the single contact. This provide you with the most information as possible.

 

Hope this helps to clarify!