Defining Activity Type Ids

Anonymous
Not applicable

Defining Activity Type Ids

Hello,

I am looking at the 'Get Lead Activities' API and see that you can pull in activities based on their type ids. Is there a place where the type id's are defined? In the example it says "activitytypeid=1". Is the 1 a standard type id or would I define it myself?
 
Tags (1)
1 REPLY 1
Anonymous
Not applicable

Re: Defining Activity Type Ids

Hi Coleen

You fire "Get Activity Types" API.
You can get all types and fields in each type.
http://developers.marketo.com/documentation/rest/get-activity-types/

Example
{"id":1,"name":"Visit Webpage","description":"User visits a web page","primaryAttribute":{"name":"Webpage ID","dataType":"integer"},
"attributes":[
{"name":"Client IP Address","dataType":"string"},
{"name":"Personalized URL","dataType":"boolean"},
{"name":"Query Parameters","dataType":"string"},
{"name":"Referrer URL","dataType":"string"},
{"name":"Search Engine","dataType":"string"},
{"name":"Search Query","dataType":"string"},
{"name":"User Agent","dataType":"string"}
]},
{"id":2,"name":"Fill Out Form","description":"User fills out and submits a form on web page","primaryAttribute":{"name":"Webform ID","dataType":"integer"},
"attributes":[
{"name":"Client IP Address","dataType":"string"},
{"name":"Query Parameters","dataType":"string"},
{"name":"Referrer URL","dataType":"string"},
{"name":"User Agent","dataType":"string"},
{"name":"Webpage ID","dataType":"integer"}
]},
{"id":3,"name":"Click Link","description":"User clicks link on a page","primaryAttribute":{"name":"Link ID","dataType":"integer"},
"attributes":[
{"name":"Client IP Address","dataType":"string"},
{"name":"Query Parameters","dataType":"string"},
{"name":"Referrer URL","dataType":"string"},
{"name":"User Agent","dataType":"string"},
{"name":"Webpage ID","dataType":"integer"}
]},
:
:
: