Content is empty.It means it doesn’t receive any message.But the workflow shows 5 contacts enrolled.But i didn’t receive any response.This image explains you all.
This may be an issue with how ColdFusion is handling the JSON data we’d send in the POST request. When I manually try you URL with data from a contact record, I’m getting an error:
ByteArray objects cannot be converted to strings.
The error occurred in C:/inetpub/app2/vitals/user_codeforhubspot.cfm: line 702
700 : <cfdump var="#HTTPRequestData#" label="HTTP Request Data">
701 : <cfoutput>
702 : <b>Content:</b> #HTTPRequestData.content#
703 : </cfoutput>
704 :
It seems like coldfusion treats the JSON as binary data instead of text, so you’ll need to deserialize the data first. The answer here might help: http://stackoverflow.com/a/5781521/2121330
Is your page storing the data from the webhook somewhere? Or are you seeing the data as empty when opening the page in your web browser? I’d expect the data to be empty when loading the page in a browser, since it would be making a GET request, so it wouldn’t have any data to print.
I’m seeing the JSON output when I manually POST to the URL:
Otherwise I’m still seeing an error further down the page:
Element DATASOURCE is undefined in SESSION.
The error occurred in C:/inetpub/app2/vitals/user_codeforhubspot.cfm: line 713
711 : </cfoutput> --->
712 :
713 : <cfquery name="tempmessage" datasource="#session.datasource#">
714 : INSERT INTO tempmessage (message) values ('#HTTPRequestData.content#')
715 : </cfquery>