Custom Activity API Script Configuration | Community
Skip to main content
Jeremy_Foote_-_
New Participant
January 24, 2017
Question

Custom Activity API Script Configuration

  • January 24, 2017
  • 1 reply
  • 4553 views

We're attempting to track whenever a lead logs into our SaaS product.

We thought we had the configuration accurate, but keep receiving "skipped" as a response.

The Custom Activity has been approved.

Is the Scripting below accurate? The primaryAttributeValue throws us for a loop.

 

Custom Activity Values:

100009

Logged Into CMP

loggedIntoCMP_c

 

  Approved

 

 

Logged Into CMP

Logs Into CMP


Field Settings:
Name: CMP Logged In

API Name: cMPLoggedIn

Data Type: String

 

Script:

{ "input":[ { "leadId":509, "activityDate":"2017-01-24T12:30:00-08:00", "activityTypeId":100009, "primaryAttributeValue":"loggedIntoCMP_c", "attributes":[ { "name": "cMPLoggedIn", "value": "True" } ] }

 

Thanks,

JFoote

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
New Participant
January 24, 2017

What's the error message accompanying the skipped status?

The primaryAttributeValue shouldn't be the API name of the CA (or rather, there's no need for it to be).

Also, are you paying attention to daily API rate limits with your approach?

Jeremy_Foote_-_
New Participant
January 24, 2017

We're not getting an error message back.

So the primaryAttributeValue doesn't have to correlate to any of the activity fields. It can be a custom value

{

"input":[

{   

"leadId":509,

"activityDate":"2017-01-24T12:30:00-08:00",

"activityTypeId":100009,

"primaryAttributeValue":"Logged into CMP",

"attributes":[

{

"name": "cMPLoggedIn",

"value": "True"

}

]

},

Yes, we're paying attention to the API Rates, we don't have a huge audience for this application.

January 25, 2017

Is Lead ID 509 exist?

I tried "skipped" case.

When the lead is non-existent, "skipped" was returned