Webhook Json Value Cutoff Issue | Community
Skip to main content
Keerthana_Shan1
New Participant
January 5, 2018
Solved

Webhook Json Value Cutoff Issue

  • January 5, 2018
  • 1 reply
  • 4185 views

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.?

Best answer by Keerthana_Shan1

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.

1 reply

SanfordWhiteman
New Participant
January 5, 2018

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).

Keerthana_Shan1
New Participant
January 5, 2018

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

SanfordWhiteman
New Participant
January 5, 2018

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