Custom Activity always returns Skipped for all input objects | Community
Skip to main content
January 15, 2018
Solved

Custom Activity always returns Skipped for all input objects

  • January 15, 2018
  • 1 reply
  • 1730 views

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": "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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by 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 reply

Rob_Alfieri
Rob_AlfieriAccepted solution
New Participant
April 9, 2018

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"

  }

  ]

}

]

}

Rob Alfieri | Principal Solutions Architect | Adobe | Marketo Engage