AnsweredAssumed Answered

Custom Activity post through API

Question asked by e1ead71662443dc5951a5069c2e52c5e03abf266 on Feb 7, 2018
Latest reply on Feb 8, 2018 by Sanford Whiteman

Hi,

I am trying to post a custom activity in marketo using the REST API "/rest/v1/activities/external.json" , but getting the status as skipped.

{"requestId":"XXXX","result":[{"status":"skipped"}],"success":true}

Below is the payload that I am passing.

"input":[{

                                        "leadId": leadId,

                                        "status": "updated",

                                        "activityDate": "2018-02-08T06:36:25Z",

                                        "activityTypeId": 2,

                                        "primaryAttributeValue": "form name",

                                        "attributes": [

                                                    {

                                                      "name": "Client IP Address",

                                                      "value": "xx.xxx.xx.xx"

                                                    },

                                              {

                                                      "name": "Form Fields",

                                                      "value": "a:20:{s:6:\"module\";s:11:\"leadCapture\";s:6:\"action\";s:5:\"save2\";s:9:\"FirstName\";s:4:\"xxx\";......"

                                                    },

                                              {

                                                      "name": "Query Parameters",

                                                      "value": null

                                                    }, {

                                                      "name": "Referrer URL",

                                                      "value": "url link"

                                                    },

                                            {

                                                      "name": "User Agent",

                                                      "value": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36"

                                                    },

                                            {

                                                      "name": "Webpage ID",

                                                      "value": 1234

                                                    }]

                                }

                                ]

 

If anyone has come across this issue, please give your suggestions.

 

Thanks

Renju

Outcomes