2 Replies Latest reply on Oct 18, 2017 10:26 AM by Kenny Elkington

    Adding custom activities via REST

    Fred Demets

      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