Adding Custom Activities results in skipped | Community
Skip to main content
Nov 25, 2017 12:07 AM UTC
Solved

Adding Custom Activities results in skipped

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.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Nov 27, 2017 3:08 AM UTC

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.

6 replies

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Nov 27, 2017 3:08 AM UTC

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.

Translate
Nov 27, 2017 6:24 PM UTC

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.

Translate
SanfordWhiteman
Level 10
Nov 27, 2017 7:03 PM UTC

CAs are defined in Admin.

Translate