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
krishna23krishna23 

SELECT ParentId,PermissionsCreate,PermissionsDelete,PermissionsEdit,PermissionsModifyAllRecords,PermissionsRead,PermissionsViewAllRecords,SobjectType FROM ObjectPermissions

Can any one explain what is parentid in above query, Is there any relationship with profile. I want to export object permission based on profile.

Thanks!!
GhanshyamChoudhariGhanshyamChoudhari
The Id of this object’s parent PermissionSet.

Example : contact is object and his parent id is Account
krishna23krishna23
Thanks GhanshyamChoudhari for your Quick response.
But I have requirement to export all object permissions based on profile. Is there any relationship with parentid and profiles.

Thanks.
Jagannathan MJagannathan M
Hello Krishna,

Currently it is not possible extract Object Permissions based on Profile as a data(csv or excel). It is clearly mentioned here :https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_objectpermissions.htm

But you can download all the Profiles metadata using eclipse and you can document the permissions.

Thanks.