Salesforce Fact #521 | ConvertLeads access check in LWC

How can we check ConvertLeads permission in LWC. This is how we can import the permission and check:

import hasConvertLeadAccess from '@salesforce/userPermission/ConvertLeads';


Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

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