Adding Custom Activities results in skipped | Community
Skip to main content
November 25, 2017
Solved

Adding Custom Activities results in skipped

  • November 25, 2017
  • 1 reply
  • 2265 views

Hello,

I am trying to add custom activities, but the status is always skipped.

My JSON body is:

{

   "input":[

      {

         "leadId":210,

         "activityDate":"2016-09-26T06:56:35+05:00",

         "activityTypeId":405,

         "primaryAttributeValue":5,

     "attributes": [

                {

                    "name": "Sharer ID",

                    "value": 51111

                },

                {

                    "name": "Social App Type ID",

                    "value": 11111

                },

                {

                    "name": "Social Network",

                    "value": "strings"

                },

                {

                    "name": "Webpage ID",

                    "value": 1

                }

            ]

      }

   ]

}

and I get the following response:

{

"requestId": "e1a3#15ff07da96a",

"result": [

  {

   "status": "skipped"

  }

],

"success": true

}

where the attributes for the activity with this id are

{         

            "primaryAttribute": {

                "name": "Social App ID",

                "dataType": "integer"

            },

            "attributes": [

                {

                    "name": "Sharer ID",

                    "dataType": "integer"

                },

                {

                    "name": "Social App Type ID",

                    "dataType": "integer"

                },

                {

                    "name": "Social Network",

                    "dataType": "string"

                },

                {

                    "name": "Webpage ID",

                    "dataType": "integer"

                }

            ]

        },

Both the lead Id and the activitiyTypeId do exist in the database.  If anyone can share some insights, would be much appreciated,

thanks.

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 SanfordWhiteman

That activity (Share Content, typically an Activity ID between 400-499) isn't a Custom Activity, it's a built-in activity linked to Marketo's social sharing feature.  You can't use the REST API to update it. If desired, you can create a lookalike Custom Activity.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
November 27, 2017

That activity (Share Content, typically an Activity ID between 400-499) isn't a Custom Activity, it's a built-in activity linked to Marketo's social sharing feature.  You can't use the REST API to update it. If desired, you can create a lookalike Custom Activity.

November 27, 2017

Hello,

Can you elaborate on this?   At first, I tried making my own activity type using a large arbitrary value for activityTypeId that didn't exist in the Get Lead Activities endpoint (which is where custom activities can be viewed, according to the document), in order to try to add a completely new custom activity (with an existing lead id).   Since that didn't work (returned status: skipped), I tried using an existing activity, which also didn't work.

SanfordWhiteman
New Participant
November 27, 2017

CAs are defined in Admin.