SOLVED

Re: Adding Custom Activities results in skipped

Go to solution
Anonymous
Not applicable

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.

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Adding Custom Activities results in skipped

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.

View solution in original post

6 REPLIES 6
SanfordWhiteman
Level 10 - Community Moderator

Re: Adding Custom Activities results in skipped

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.

Anonymous
Not applicable

Re: Adding Custom Activities results in skipped

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
Level 10 - Community Moderator

Re: Adding Custom Activities results in skipped

CAs are defined in Admin.

Anonymous
Not applicable

Re: Adding Custom Activities results in skipped

Ah, ok.

So after making a new one, it is still showing as skipped.

Edit: Didn't realize that only future events can be added.

SanfordWhiteman
Level 10 - Community Moderator

Re: Adding Custom Activities results in skipped

Edit: Didn't realize that only future events can be added.

You certainly can add past events (it wouldn't make sense to have a bulk API that could only add future/current events!).

Anonymous
Not applicable

Re: Adding Custom Activities results in skipped

Oh, strange.  I tried adding the event at a random point in time in 2015, and it gave the result skipped. So I changed just the 2015 to 2018 and it succeeded.  

After trying again, 2015 appears to work as well. Not sure what had happened.

Thanks.