Are activity types fixed? | Community
Skip to main content
January 7, 2015
Question

Are activity types fixed?

  • January 7, 2015
  • 3 replies
  • 1205 views
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
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

January 7, 2015
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.
January 8, 2015
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 ?
January 8, 2015
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.