Salesforce Folder Id by Record Id

Highlighted
Occasional Contributor

Salesforce Folder Id by Record Id

I created a folder using the Salesforce toolkit's createFolderForRecordId method.  When I go to retrieve that folder using the getFolderIdByRecordId method, I am receiving a null value leading me to believe that there are not any folders associated to the Record Id, the same Record Id I just used to "createFolderForRecordId". 

 

Has anyone ran into this before and solved?

1 REPLY 1
Highlighted
First-time Contributor

Re: Salesforce Folder Id by Record Id

Even if the folder get's created, you should call the boxToolkit.mostRecentError because what happend to me was that the name was too large, so even if it was created correctly, it didn't recover the association to the record, I had to make the name shorter and it work, but yours could be a different error