Issues with Audience metadata

Issue #1645 new
Scott Wells repo owner created an issue

While addressing a few issues with other ExperienceBundle metadata, I noticed that there's also an issue with Audience metadata. The issue appears to be in Salesforce, though, as the file names reported for Audience metadata entries via the API do not match the expected file names. For example, I have two communities, one called Community1 and one called Community2. When you use listMetadata to query the entries for the corresponding default Audience metadata, it includes the following:

First

fileName=audience/Default.audience
fullName=Default
type=Audience

Second

fileName=audience/Default1.audience
fullName=Default1
type=Audience

When you then retrieve files for those entries, you get back the following:

Default_Community1.audience

<?xml version="1.0" encoding="UTF-8"?>
<Audience xmlns="http://soap.sforce.com/2006/04/metadata">
    <audienceName>Default</audienceName>
    <container>Community1</container>
    <criteria/>
    <formulaFilterType>AllCriteriaMatch</formulaFilterType>
    <isDefaultAudience>true</isDefaultAudience>
</Audience>

Default_Community2.audience

<?xml version="1.0" encoding="UTF-8"?>
<Audience xmlns="http://soap.sforce.com/2006/04/metadata">
    <audienceName>Default</audienceName>
    <container>Community2</container>
    <criteria/>
    <formulaFilterType>AllCriteriaMatch</formulaFilterType>
    <isDefaultAudience>true</isDefaultAudience>
</Audience>

As a result there's no definitive way to correlate local *.audience[-meta.xml] files to Audience metadata type entries.

Comments (0)

  1. Log in to comment