You need to sign in to do that
Don't have an account?

query on folders
hii,
i have to create a page in which i select a folder and then i have to show all list of templates in that folder.
but problem is that in query i am only getting custom folders..not visual force forlders, like unfield public email template
tahnks
"Unfiled Public Email Templates" and "My Personl Email Template" are system folders that are not returned if you query Folder table.
To get these you have hard-code their Ids.
Unfiled Public Email Template folder Id - UserInfo.getOrganizationId()
Personal Email Template folder Id - UserInfo.getUserId()