Are activity types fixed?

Anonymous
Not applicable

Are activity types fixed?

We are interested in fetching lead activities from marketo with REST API. We are using
/rest/v1/activities/types.json and /rest/v1/activities.json endpints for that purpose. I have following questions regarding to this.
- Are activity types returned from /rest/v1/activities/types.json fixed ? Can they change depending on activated integrations or system configuration?
- Are activity types ids the same for each marketo account ?

Thanks in advance
Tags (1)
3 REPLIES 3
Anonymous
Not applicable

Re: Are activity types fixed?

Generally, yes. The Activity Types returned from this endpoint are static for an individual Marketo instance. I would still recommend calling this endpoint at least once for each Marketo instance.
Anonymous
Not applicable

Re: Are activity types fixed?

Hi Murtza, 

Thanks for your replay.
Just to clarify, let's say that we have a use case that we want to fetch `Visit Webpage` activities for different marketo instances. Can we assume that `Visit Webpage` activity type id is equal `1` for all instances (like we have right now on our instance) and use it for filtering, or safer is to determine activity id by name from  /rest/v1/activities/types.json endpoint before ?
Anonymous
Not applicable

Re: Are activity types fixed?

In the short term, tehse activity type ids will most likely stay constant. Looking at a longer time horizon, it is best practice to decouple the dependence on hardcode variable values. I would recommend polling the  Get Activty Types API to make sure these actitvity type variable values are in sync.