Webhook Json Value Cutoff Issue | Community
Skip to main content
Keerthana_Shan1
Level 2
Jan 5, 2018 7:56 AM UTC
Solved

Webhook Json Value Cutoff Issue

Hi,

I am using webhook to call API, the problem is the URL value is cutting off if it contains '&' in it.

Example Json Template:

PersonId={{lead.Id:default=edit me}}&ContactCreated= {{lead.Created At:default=edit me}}&ContactModified= {{lead.Updated At:default=edit me}}&FormURL= {{lead.Form URL:default=edit me}}

URL value = abc.com/sampletext/?value1=xxxx&value2=yyy&value3=zzzz

In this URL, the value is cutting off after first Amberson occurs, like (abc.com/sampletext/?value1=xxxx).

Is there a solution to handle URL values.?

Keerthana_Shan1
Keerthana_Shan1Accepted solution
Level 2
Jan 8, 2018 9:30 AM UTC

Set Request Encoding to Form/URL, not JSON. Your payload is clearly not JSON.


Thanks Sanford.

Updated request encoding to Form/URL and template format with double quotes. It was working Fine.

13 replies

SanfordWhiteman
Level 10
Jan 5, 2018 8:07 AM UTC

Please show screenshots of

- the full webhook definition (in Admin)

- the activity detail (click the activity ID to open the detail) for the Call Webhook activity in a lead's Activity Log

Make sure to capture the entire popup in the screenshot (expand or scroll as necessary).

Translate
Keerthana_Shan1
Level 2
Jan 5, 2018 10:51 AM UTC

In webhook payload request we are having the correct url, but when the request payload is passed to API, the payload is converted into class(object) where the url is cut off after '&' (Amberson).

PFB the screenshot of webhook and activity log

Translate
SanfordWhiteman
Level 10
Jan 5, 2018 3:59 PM UTC

Set Request Encoding to Form/URL, not JSON. Your payload is clearly not JSON.

Translate