AnsweredAssumed Answered

Adding custom activities via REST

Question asked by 29465607e4ef7a0ba7540dc3e66bbf1e3d6555f3 on Oct 18, 2017
Latest reply on Apr 2, 2018 by Sanford Whiteman

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

Outcomes