Query Profile Permissions in Salesforce

Following SOQL will fetch the Profiles which has "Manage Flow" and "View All Data" permissions.

SELECT Id, Name FROM Profile WHERE PermissionsViewAllData = true AND PermissionsManageInteraction = true

PermissionsViewAllData is the View All Data Permission API Name
PermissionsManageInteraction is the Manage Flow Permission API Name


No comments:

Post a Comment