Missing Quick Action
Detection
- RegExp:
Error (.*) In field: QuickAction - no QuickAction named (.*) found
Examples
Error Account-Account Layout In field: QuickAction - no QuickAction named Account.New_Case found
Resolution
QuickAction {2} used in {1} is unknown in the target org. You can:
- Deploy {2}: retrieve it from your org with the Metadata Retriever of VS Code, commit it and save your User Story: sfdx-hardis adds it to manifest/package.xml
- With delta deployments, an item that did not change in the Pull Request is not deployed: change it in the Pull Request, or turn on useDeltaDeploymentWithDependencies (https://sfdx-hardis.cloudity.com/salesforce-devops-config-delta-deployment/)
- If {2} is a standard QuickAction, enable its feature in the target org
- If {2} exists in some orgs only, add a replacement rule that removes it before each deployment to the orgs that refuse it (https://sfdx-hardis.cloudity.com/salesforce-devops-config-replacement-rules/):
sf hardis:project:replacement:create --agent --layer project --id remove-unknown-quick-action --type xml-remove --files "**/layouts/*.layout-meta.xml" --xml-path "Layout/quickActionList/quickActionListItems[quickActionName={2}]" --include-branches TARGET_BRANCH