Getting correct folder ID

Bill_Chaikin
Level 1

Getting correct folder ID

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.

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: Getting correct folder ID

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

Re: Getting correct folder ID

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.