You need to sign in to do that
Don't have an account?
Ollie.ax81
How to search for a folder
I have created a folder in the SalesForce.com UI, now I want to search for that folder through the API to get its ID so I can use the API to add documents to that folder.
I tried modifying the searchexample with
sr = binding.search("find " + folderName +
"in name fields " +
"returning " +
"folder(id)");
where folderName is the name of the folder created in the Web UI.
can I just do a search (or query) to get all the folders? I can loop through those and match my name.
I tried modifying the searchexample with
sr = binding.search("find " + folderName +
"in name fields " +
"returning " +
"folder(id)");
where folderName is the name of the folder created in the Web UI.
can I just do a search (or query) to get all the folders? I can loop through those and match my name.
Hi Ollie,
Base on the describe call, the folder object is not a searchable object. Meaning that search will not inspect it. Use a standard SOQL statement.
Select Id, Name from Folder where Name = 'New Folder'