function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Baron Chen 11Baron Chen 11 

sfdx:force:source:pull Sharing Rules

Hello,
I have configured sharing rules in my scratch org, but these sharing rules can not be pulled using 'sfdx force:source:pull'.
Please help me to come out from this big situation, I hope I am not confusing to you.
 
Raj VakatiRaj Vakati
Is the sharing rules are included in your package .xml file??
 
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>ObjA__c.*</members>
        <name>SharingCriteriaRule</name>
    </types>
    <types>
        <members>ObjA__c.*</members>
        <name>SharingOwnerRule</name>
    </types>
    <version>43.0</version>
</Package>

 
Baron Chen 11Baron Chen 11
In sfdx format, no package.xml file exists.
This is my root directory:
User-added image
and  this is my force-app->main->default directory:
User-added image