Use Case
There is a highly customized Salesforce org having Community enabled. Along with other customizations, Community is using Page Variance with the Audience. The Audience feature is used to target a set of audiences based upon defined criteria. As an Architect, I am evaluating if SFDX based Source-driven (Scratch Org based) development workflow will support Audience metadata or not.
Recap
In my previous article ExperienceBundle support in Scratch Org based (Source - driven) Development Workflow, I explained how ExperienceBundle will help in effectively versioning the metadata related to Communities and eventually another step close towards the adoption of Source-Driven development. Since ExperienceBundle supports themes, routes, brandigSets related metadata, I was under impression that Audience specific metadata will be supported too.
Audience support in Salesforce CLI
I did a small POC for this use case. I set up a Scratch Org using my repo V1.1. I created an Audience in Community Builder and did the assignment. When I tried to pull the source using SFDX: Pull Source from Default Scratch Org, Salesforce CLI gave me below error:-
Conclusion
If you are using the Audience feature in your Salesforce Community, it's still not supported by Salesforce CLI, so take this into consideration before making any decision about adopting Source-driven (Scratch Org based) development workflow.
The good news is that Salesforce acknowledges this gap and hopefully it will be addressed very soon. Stay tuned!
Comments
Post a Comment