If you are working with templates and template folders, you might have run into challenges around displaying folder names for templates in the personal and public folders.

The API does not return folder name for Personal or Public folders in the API. The personal folder is represented by the user id and the public folder is represented by the org id.

To decode the folders into the personal and public folder names you can use this example code from the  ADN Wiki http://wiki.apexdevnet.com/index.php/Get_Template_Folder_Names

Example when returning folders from the API before:


After decoding the folder names from into personal and public folders, you will be able to find and scroll through your folders.


Get the latest Salesforce Developer blog posts and podcast episodes via Slack or RSS.

Add to Slack Subscribe to RSS