function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Manish S 8Manish S 8 

Hai, I am a beginner in salesforce. I want to retrieve all profiles field level security information and It refers to the objects present only in the profile's field level security section. Is it possible through apex coding ??

MithunPMithunP
Hi Manish,

It's not possible, but you can retrive profile inforamation like profileid, name etc.

Best Regards,
Mithun.
Manish S 8Manish S 8
Then how is it possible to retrieve it, so as to display the information on a visualforce page.
 
MithunPMithunP
Hi Manish,

You can do something like this
SELECT Id, SObjectType, PermissionsRead, PermissionsCreate
FROM ObjectPermissions
WHERE parentid in (select id from permissionset where
PermissionSet.Profile.Name = 'System Administrator')



Best Regards,
Mithun.
Manish S 8Manish S 8
Then i want to upload the details onto .csv file with the all the profiles appearing in each tab. Each objects will have a separate tab.
Manish S 8Manish S 8
User-added image
Manish S 8Manish S 8
I feel we should use metadata api
MithunPMithunP
Yes Manish, i think we should use metadata api
Manish S 8Manish S 8
Can anyone help me out in this manner.