-
Re: Can't add custom activity
Sanford Whiteman Jul 20, 2016 10:45 AM (in response to dd4cf74745749c1533690ea0b8db98ff721fd851)If those extra commas are actually in the request, they are creating null members. Only the last comma is ignored.
-
Re: Can't add custom activity
dd4cf74745749c1533690ea0b8db98ff721fd851 Jul 20, 2016 11:02 AM (in response to Sanford Whiteman)It's just truncated. radical body is more go on.
-
Re: Can't add custom activity
Sanford Whiteman Jul 20, 2016 11:05 AM (in response to dd4cf74745749c1533690ea0b8db98ff721fd851)I don't understand you completely, but I'd need to see an entire body of a failed request, not a truncated one. You also have a missing right curly brace.
-
Re: Can't add custom activity
dd4cf74745749c1533690ea0b8db98ff721fd851 Jul 20, 2016 5:48 PM (in response to Sanford Whiteman)I'm testing another system written in PHP. In that case, there is 60 attributes in that body. I post this article edited by hand.
Admittedly, I'm missing right curly brace but, it's just mistake by hand.
In actuality, that request body generated by json_encode() function so, it is not a point of that problem.
-
Re: Can't add custom activity
Sanford Whiteman Jul 20, 2016 6:38 PM (in response to dd4cf74745749c1533690ea0b8db98ff721fd851)Can't say I understand your dev/debugging environment if you have to hand-retype the request.
In any case your payload doesn't conform at all to the docs, which show:
{ "input" : [ { "leadId" : 1001, "activityDate" : "2013-09-26T06:56:35+07:00", "activityTypeId" : 1001, "primaryAttributeValue" : "Game Giveaway", "attributes" : [ { "name" : "URL", "value" : "http://www.nvidia.com/game-giveaway" } ] } ] }
attributes is an array of objects. Each object has two own properties, name and value. You're doing something very different, and obvs. that's why it's breaking.
-
Re: Can't add custom activity
dd4cf74745749c1533690ea0b8db98ff721fd851 Jul 20, 2016 8:27 PM (in response to Sanford Whiteman)I seem to have been completely misunderstood. I debugged and it has ran correctly.
Thank you for your reply and your help in resolving the problem.
-
Re: Can't add custom activity
Sanford Whiteman Jul 20, 2016 8:38 PM (in response to dd4cf74745749c1533690ea0b8db98ff721fd851)Please mark one of the earlier responses as Correct for future searches.
-
-
-
-
-
-