Skip to content

Enable CRM Analytics

Detection

  • String: It should be created by enabling the CRM Analytics Cloud preference

Examples

  • Error Sales_Analytics The Analytics Cloud Integration User does not exist. It should be created by enabling the CRM Analytics Cloud preference

Resolution

CRM Analytics (formerly Wave, Einstein Analytics, Tableau CRM) is not enabled in the target org.
- Enable it in the target org (Setup -> Analytics -> Getting Started), and assign the CRM Analytics Admin permission set to the deployment user
- The manual deployment action below reminds to do it in each org of the pipeline, with a checkbox in the Pull Request comments

Deployment action

A deployment action can solve this error. Create it on the Pull Request of the current branch:

sf hardis:project:action:create --agent --scope pr --pr-id current --when pre-deploy --type manual --label "Enable CRM Analytics" --instructions "1. Open Setup, type Getting Started in the Quick Find box under Analytics, and click Enable CRM Analytics
2. Assign the permission set CRM Analytics Admin (or CRM Analytics Plus Admin) to the user of the CI/CD deployments
3. If CRM Analytics is already enabled, there is nothing to do"

Documentation: https://sfdx-hardis.cloudity.com/salesforce-devops-work-on-user-story-deployment-actions-manual/

Comments