Query Profile Permissions in Salesforce
Following SOQL will fetch the Profiles which has "Manage Flow" and "View All Data" permissions.SOQL: SELECT Id, Name FROM Profile WHERE PermissionsViewAllData = true AND PermissionsManageInteraction = truePermissionsViewAllData is the ....