Custom Activity API Script Configuration | Adobe Higher Education
Skip to main content
Jeremy_Foote_-_
Level 2
January 24, 2017
質問

Custom Activity API Script Configuration

  • January 24, 2017
  • 10 の返信
  • 4570 ビュー

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

このトピックへの返信は締め切られました。

10 の返信

SanfordWhiteman
Level 10
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_-_
Level 2
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