+ Start a Discussion
sadasiva07sadasiva07 

retriving Dashboard folder Names through api

Hi friends,

 

i want to retrive the Dashboard foldername. plz tell how we can do this by apex coding:-)

sai.sfsai.sf

Select d.Folder.Name, d.FolderId From Dashboard d

sadasiva07sadasiva07

its not working

 

sample code which i used :

list<Dashboard> d=[Select d.Folder.Name, d.FolderId From Dashboard d];
system.debug('___d____'+d);

 

o/p:

 

--11:36:10.078 (78879000)|USER_DEBUG|[2]|DEBUG|___d____(Dashboard:{Id=01Z90000000InP6EAK, FolderId=00l90000000lnfXAAQ}, Dashboard:{Id=01Z90000000InP7EAK, FolderId=00l90000000lnfXAAQ}, Dashboard:{Id=01Z90000000LITHEA4, FolderId=00l90000000Yt0sAAC}, Dashboard:{Id=01ZO00000008fUmMAI, FolderId=00lO0000000UUgkIAG}, Dashboard:{Id=01Z90000000LIfwEAG, FolderId=00590000000YzzIAAS}, Dashboard:{Id=01Z90000000LIg1EAG, FolderId=00590000000YzzIAAS}, Dashboard:{Id=01Z90000000LIg6EAG, FolderId=00590000000YzzIAAS})