Unable to retrieve campaign using campaignId from activity detail endpoint | Community
Skip to main content
December 29, 2016
Question

Unable to retrieve campaign using campaignId from activity detail endpoint

  • December 29, 2016
  • 1 reply
  • 4742 views

Hi All,

We need to understand why the API is returning certain data in a specific scenario we have.

We create a program, then we clone an existing activity (Send Email) from another program (the second program has a campaign associated to the activity).

After that, we approve the new program which contains an activity and no campaigns.

When we use the API to retrieve all the activities (type= Send Email) we noticed the cloned one has a campaign  ID that we don’t see in the campaign list from the API (and that we don’t have in the UI, remember that we created this activity with no campaign associated).

Campaigns:

Is there any explanation in why that campaign id is added?

Is there a way to retrieve that phantom campaign from the API?

Can we consider that campaign ID an internal value Marketo need to add under the hood?

Thanks,

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

1 reply

Justin_Cooperm2
New Participant
December 29, 2016

An Email Program (what you show above) is an abstraction of a Marketo Smart Campaign. The Email Program itself has an ID (1028 in your example above) and when it is run, Marketo auto-creates a child smart campaign that's job is to execute the Email Program. This campaign is not generally visible to a Marketo user in the UI (think of it as hidden) but it would correctly corresponds to the "Send Email" activity that would occur on a lead if they received an email from this Email Program. So, it has nothing to do with cloning, this is the result you would get with any Email Program that has already been sent out. You should have enough info in the API result to identify that the "Send Email" was associated with a Marketo Email Program.

January 2, 2017

Hi Justin, thank you for this priceless information! That was our guess, now we confirm

Is there any way we can retrieve that "hidden" campaign info using the REST API?

Is there any other service we could use to retrieve it?

Bests

Justin_Cooperm2
New Participant
January 3, 2017

Which info about the campaign are you looking for?