Skip to main content

Using sdfx pull command to pull a PersonAccount Matching Rule from a scratch org is having some issues. The pulled file (Account.matchingRule) is almost empty. Please find the content of the file below. As you can notice, the file doesn't have any meta information about my custom matching rule that I created in my scratch org. Any ideas? Is this an SFDX bug?

<?xml version="1.0" encoding="UTF-8" ?>

<MatchingRules xmlns="http://soap.sforce.com/2006/04/metadata" />

#SFDX CLI #Sfdx Command #Person Account #Matching Rule #Sfdx #SFDX Source

5 answers
  1. Apr 1, 2024, 3:54 AM

    For anyone who comes here for a solution: To include PersonAccount Matching rule, you have to use PersonAccount.<MatchingRuleName>

    <types>

    <members>PersonAccount.Custom_Person_Account_Matching_Rule</members>

    <name>MatchingRule</name>

    </types>

    <types>

    <members>PersonAccount</members>

    <name>MatchingRules</name>

    </types>

0/9000