Which API does provide us the order of the "Smart Campaign"? | Community
Skip to main content
January 29, 2016
Question

Which API does provide us the order of the "Smart Campaign"?

  • January 29, 2016
  • 3 replies
  • 2688 views

Hi Guys,

I have a question about Marketo API.

As you can know, There are the "Program" in the "Assets".

Which API does provide us the order of the "Smart Campaign"?

Could you tell me your thought?

Kind Regards,

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

3 replies

Grégoire_Miche2
Level 10
January 29, 2016

Hi Hiroaki,

What do you mean by the "order" of smart campaigns ?

-Greg

February 1, 2016

Hi Greg.

The "Order", is that of " sequence " .

In asset of smart campaign , I want to get the API to " sequence " .

Grégoire_Miche2
Level 10
February 1, 2016

Hi Hiroaki,

I do not think this information can be retrieved.

-Greg

February 1, 2016

Hi Hiroaki

You can get the order of SC via Get Folder Contents » Marketo Developers

For example

I created Z,M,A and Y SC.

The order in Assets tab as you want is below.

It seems this order is the order of SC ID's.

Now I got SC's under this PG via Get Folder Contents » Marketo Developers .

REQUEST

999-XXX-999.mktorest.com/rest/asset/v1/folder/1234/content.json?type=Program&access_token=xxxxxxxxxxxxxx

RESPONSE

{"success":true,"warnings":[],"errors":[],"requestId":"afd9#1529b455e95","result":[

{"type":"Smart Campaign","id":2074}, <====Z SC

{"type":"Smart Campaign","id":2075}, <====M SC

{"type":"Smart Campaign","id":2076}, <====A SC

{"type":"Smart Campaign","id":2077}  <====Y SC

]}

Good luck

February 1, 2016

Hi. Masaki.

Thanks for the answer.

"SC ID" is huh creation order of the SC.

When sorted by drag-and-drop, "SC ID" will change?

February 1, 2016

It's a good question!

SC ID is assigned when SC is created.

You can see at Marketo SC URL.

For example, "SC Z" is app-xx99.marketo.com/#SC2074A1

Also, I tried to call Get Folder Contents » Marketo Developers  after Drag&Drop operation.

It was still the order of ID's.

Unfortunately, we can not get the order of visual.

February 3, 2016

Thanks!

Certainly, it 's a little inconvenient.

I guess I like PLanB.

But it is not a perfect solution.

I think to try to analyze the source...