Salesforce Fact #161 | Check if marketing user

We can use the UserPermissionsMarketingUser field of User object to know if Marketing User checkbox is enabled or not in the User record. This field is not visible in the object manager. But can be queried.

Example: SELECT Name, UserPermissionsMarketingUser FROM User WHERE IsActive = TRUE

Collected from: https://developer.salesforce.com/docs/atlas.en-us.sfFieldRef.meta/sfFieldRef/salesforce_field_reference_User.htm

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow