Bug With Folder ID for Cloning Program via Rest API? | Community
Skip to main content
Edwin_Afable1
New Participant
June 7, 2018
Solved

Bug With Folder ID for Cloning Program via Rest API?

  • June 7, 2018
  • 2 replies
  • 2678 views

Hello Marketo Community,

Is a Folder ID obtained from the 4~5 digit ID in the URL?

I'm currently trying to clone a program into a folder with this endpoint, but encounter the following error:

I'm able to successfully clone into a program, but for some reason it doesn't work when I try to clone into a folder. Here's how I'm retrieving the Form ID:

Here's the specific JavaScript that's modified:

I've had it say: {"id":XXXXX,"type":"Program"} for the relevant section and it successfully inserted a new program. Any ideas or thoughts would be appreciated Thanks in advance for any insight.

Best answer by Edwin_Afable1

4082 was indeed the wrong Id! For the folder in question, it was 17134. For anyone trying to reference Folder IDs, the ID in the hyperlink doesn't correspond like it does for Programs and Forms

2 replies

Edwin_Afable1
Edwin_Afable1AuthorAccepted solution
New Participant
June 7, 2018

4082 was indeed the wrong Id! For the folder in question, it was 17134. For anyone trying to reference Folder IDs, the ID in the hyperlink doesn't correspond like it does for Programs and Forms

SanfordWhiteman
New Participant
June 7, 2018

Don't think it's guaranteed to for Programs, either. It's ultimately a UI shortcut.

Edwin_Afable1
New Participant
June 7, 2018

Thanks Sanford Whiteman​! I won't make that assumption for Programs either.

Edwin_Afable1
New Participant
June 7, 2018

I think my assumption that the ID in the URL was the correct one, may have not been the correct assumption

Why can't the API find my folders?

Going to try pulling via the call for folders and comment back here just in case anyone else encounters this