Use the Apex Access Methods
The Access class provides utility methods to check
Integration User access to sObjects and sObjectFields. Use these methods in your WaveTemplateConfigurationModifier implementation.
Apex is the object-oriented Salesforce programming language that allows developers to execute flow and transaction control statements on the Lightning Platform server along with calls to the API.
Using Access in a smart wizard simplifies standard app creation in these ways:
- Checks if the Integration User has access to sObjects.
- Checks if the Integration User has access to sObjectFields.
- Checks if the Integration User has access to enough records in an sObject to continue with template processing.
The Access methods can also be used with embedded apps to check if the org has given access to the Integration User for the necessary sObjects and sObjectFields. In this use case, you can fail app creation with a clear message for the Auto-Install request.
For complete details about Apex, see Apex Developer Guide.