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.
Solved! Go to Solution.
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.
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.
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.
CAs are defined in Admin.
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.
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!).
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.