1 Reply Latest reply on Apr 9, 2018 11:47 AM by Rob Alfieri

    Custom Activity always returns Skipped for all input objects

    Jon Bowen

      I'm trying to create a Custom Activity Record with the REST Api, but I always get "Skipped" for all input objects. The custom activity exists, it is approved, and all of the leads exist.

       

      Here is the sample request.

      {

        "input": [

          {

            "leadId": "70281",

            "activityDate": "2017-12-15T12:42:00",

            "activityTypeId": 100003,

            "primaryAttributeValue": "13001",

            "attributes": [

              {

                "name": "Chat Topic",

                "apiName": "chatTopic",

                "value": "Atrial Fibrillation"

              },

              {

                "name": "Email Address",

                "apiName": "emailAddress",

                "value": "test1@hileman.biz"

              },

              {

                "name": "Registered Date",

                "apiName": "registeredDate",

                "value": "12/15/2017 12:42:00 PM"

              },

              {

                "name": "Chat Date Time",

                "apiName": "chatDateTime",

                "value": "12/15/2017 12:00:00 PM"

              },

              {

                "name": "Short Description",

                "apiName": "shortDescription",

                "value": "Atrial fibrillation (AF or AFib) is the most common heart rhythm abnormality that starts in the atria. Approximately 2.2 million people in America and 4.5 million in the European Union have paroxysmal or persistent AF. Please join us to have your Atrial Fibrillation questions answered by staff cardiologist Mandeep Bhargava, MD, and Medical Director of the Center for Atrial Fibrillation, Walid Saliba, MD. "

              },

              {

                "name": "Transcript URL",

                "apiName": "transcriptURL",

                "value": "http://www.test.com"

              },

              {

                "name": "Active Chat",

                "apiName": "activeChat",

                "value": "true"

              },

              {

                "name": "Speaker 1",

                "apiName": "speaker1",

                "value": "Mandeep Bhargava, MD"

              },

              {

                "name": "Speaker 1 URL",

                "apiName": "speaker1URL",

                "value": "6660"

              },

              {

                "name": "Speaker 2",

                "apiName": "speaker2",

                "value": "Walid Saliba, MD"

              },

              {

                "name": "Speaker 2 URL",

                "apiName": "speaker2URL",

                "value": "3456"

              },

              {

                "name": "Speaker 3",

                "apiName": "speaker3",

                "value": ""

              },

              {

                "name": "Speaker 3 URL",

                "apiName": "speaker3URL",

                "value": ""

              },

              {

                "name": "Speaker 1 Title",

                "apiName": "speaker1Title",

                "value": "Staff Cardiologist"

              },

              {

                "name": "Speaker 1 Department",

                "apiName": "speaker1Department",

                "value": "Section of Cardiac Electrophysiology and Pacing"

              },

              {

                "name": "Speaker 2 Title",

                "apiName": "speaker2Title",

                "value": ""

              },

              {

                "name": "Speaker 2 Department",

                "apiName": "speaker2Department",

                "value": ""

              },

              {

                "name": "Speaker 3 Title",

                "apiName": "speaker3Title",

                "value": ""

              },

              {

                "name": "Speaker 3 Department",

                "apiName": "speaker3Department",

                "value": ""

              }

            ]

          }

        ]

      }

       

      Here is the response.

      {

        "requestId": "f6af#160fb4a187f",

        "result": [

          { "status": "skipped" }

        ],

        "success": true

      }

       

      Thanks in advance.

        • Re: Custom Activity always returns Skipped for all input objects
          Rob Alfieri

          I recommend just using name or apiName. Here's what worked for me.

           

          {

          "input": [

          {

            "leadId": 2000950,

            "activityDate": "2018-04-01T23:18:34Z",

            "activityTypeId": 100008,

            "primaryAttributeValue": "PEPTIDE XB-C18",

            "attributes": [

            {

            "apiName": "productBrand",

            "value": "Aeris"

            },

                {

                "apiName": "orderNumber",

                "value": "APR012018"

                },

            {

            "apiName": "productSKU",

            "value": "PEPXBC18"

            },

            {

            "apiName": "orderDate",

            "value": "2018-04-01"

            },

            {

            "apiName": "orderQuantity",

            "value": 1

            },

            {

            "apiName": "productPromo",

            "value": "None"

            }

            ]

          }

          ]

          }

          1 of 1 people found this helpful