2

Is it possible to move sharing rules from one environment to another WITHOUT having to recreate it manually in Salesforce? I read somewhere that Force.com Migration Tool can be used to transfer these metadata as well.

5

Its definitely possible using Forc.com migration tool or changset .

The changeset components will consists of the sharing rule both criteria and ownership based for custom and standard objects .Looks for them in the changeset.

If you want to move via Force.com IDE or ANT migration tool you can use package.xml

<?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>39.0</version> </Package>

In force.com IDE you will see a folder named SharingRule that you can deploy to the other org .

  • Thanks, Mohith. the Force.com tool worked for me. Appreciate your help. – Suresh Krishnan May 11 '17 at 16:04
  • @suresh please mark the answer as answered if that helped . – Mohith Shrivastava May 11 '17 at 17:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.