Getting correct folder ID | Community
Skip to main content
Bill_Chaikin
Level 1
February 20, 2020
Question

Getting correct folder ID

  • February 20, 2020
  • 1 reply
  • 1666 views

I am trying to clone a smart list programmatically.  It works but the cloned smart list winds up in some unexpected folder.  I am using the folder ID for the cloned smart list that I grab from the URL.  I cannot figure out what I am doing wrong.  I've read the docs a number of times.  Any help is most appreciated.

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

1 reply

SanfordWhiteman
Level 10
February 20, 2020

You must get Folder IDs from the Program/Folder API endpoint. The hint in the URL hash is only valid for some Program types. In other cases it's relevant only to the UI.

Bill_Chaikin
Level 1
February 26, 2020

Thank you for the reply.

I have tried this.

I printed out a list of every folder along with its ID.

When I use try using any of these IDs I get an error message that says it in is invalid or not a Smart List folder.

I am stymied.