Tuesday, May 5, 2020

How to deploy sharing rules using ANT tool in Salesforce

package.xml
<types>
<members>Account.*</members>
<name>SharingCriteriaRule</name>
</types>

<types>
<members>Account.*</members>
<name>SharingOwnerRule</name>
</types>

2 comments:

  1. I tried to deploy criteria based sharing rule using the above package. But the sharing rule was not deployed. I read somewhere the package should be like given below
    *
    SharingRules

    https://github.com/forcedotcom/cli/issues/833

    ReplyDelete