You need to sign in to do that
Don't have an account?
szesze20
Is there a call similar to describeTabs() but for all users?
I implemented a VF page using describeTabs() but I underestand this is only for the logged-in user:
And I am able to get the result like this in the screenshot.
But, here's what I want to do: A custom VF page for admin to pull the same result but for *all* users, not just logged in user. Is there a call similar to describeTabs() but for all users? thanks.
<apex:page > <html> <head> <apex:includeScript value="/soap/ajax/17.0/connection.js"/> <script type="text/javascript"> function displayTabs(tabs) { for( var i=0; i<tabs.length; i++) { var tab = tabs[i];document.write( " " + tab.label + " " + tab.sobjectName ); document.write("<br />"); } document.write("<br />"); } sforce.connection.sessionId = '{!$Api.Session_ID}'; try {var result = sforce.connection.describeTabs(); } catch(error) { document.write(error); }for (var i=0; i < result.length; i++) {var tabSet = result[i]; document.write (tabSet.label); document.write("<br />"); var tabs = tabSet.get("tabs"); displayTabs(tabs); } </script> </head> <body > </body> </html> </apex:page>
And I am able to get the result like this in the screenshot.
But, here's what I want to do: A custom VF page for admin to pull the same result but for *all* users, not just logged in user. Is there a call similar to describeTabs() but for all users? thanks.