Differentiating API sources (staging/production) | Community
Skip to main content
January 8, 2018
Solved

Differentiating API sources (staging/production)

  • January 8, 2018
  • 1 reply
  • 1650 views

Hi there,

I've recently setup a series of campaigns, which I would like to test using staging users from our external service which create the leads initially. Would anyone have any advice on differentiating leads created by different sources? Unfortunately it doesn't appear possible to filter the campaigns smart list based on a specific API key (our staging and production servers use different marketo API keys). I see that I can filter by source type, but it isn't granular enough for this purpose.

My only thought is adding a new boolean lead attribute, something along the lines of stagingUser. This would require additional changes to our service naturally, but perhaps it is the only solution?

Many thanks!

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

You'll always need to change *something* on the client side. You can set a lead field to a certain value (I would use an Integer, not a Boolean, though, for scaleability) or if you happen to be using the Push Lead API set the Reason field on the activity itself.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
January 8, 2018

You'll always need to change *something* on the client side. You can set a lead field to a certain value (I would use an Integer, not a Boolean, though, for scaleability) or if you happen to be using the Push Lead API set the Reason field on the activity itself.

January 8, 2018

Right, I thought that might be the case, thanks Sanford.