I've set up a custom activity and want to add new items to it via the REST API. Every time I try to do that the calls succeeds but I always get a "skipped" message.
This is the input:
"input": [
{
"lead_id": 1,
"attributes": [
{
"name": "shareSubject",
"value": "My Subject"
}
],
"activity_date": "2017-03-05T09:51:00-08:00",
"activity_type_id": 100001,
"primary_attribute_value": "1234"
}
],
This is the result:
"requestId": "4f6e#15f2ef45156",
"result": [
{
"status": "skipped"
}
],
"success": true
Here's the CA definition:
{
"id": 100001,
"name": "SP Content Shared",
"apiName": "spContentShared_c",
"description": "Happens when a rep shares content with the customer",
"primaryAttribute": {
"name": "Sales Collateral",
"apiName": "salesCollateral",
"dataType": "string"
},
"attributes": [
{
"name": "Share Subject",
"apiName": "shareSubject",
"dataType": "string"
}
]
}
Any ideas what is going wrong? Is there a way I can check low level logs for the REST API?
thx
Hi Fred,
Check your activity_type_id - you are submitting the wrong value, as it seems.
Hope that helps.
Paul, "activity_type_id": 100001, and there is "id": 100001 in the CA definition.
The IDs are the same. Why do you think Fred submits a wrong value?
The post has probably been modified since Paul made that call.
If you have a new question on the Activities API, please open a new thread in Products.
Is lead ID 1 a valid lead?