-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to deploy sharing rules trought sfdx force:source:deploy command in version 7.82 #833
Comments
@dimitrimonge It might be an issue caused by an old version of sfdx. Try to update to the latest version: |
Hey,
Files are here inside of the following files pacakge file is
|
@dimitrimonge @DougMidgley could either of you provide a link to a github repo that contains the metadata that replicates this issue? Thanks |
This issue has been automatically closed because there has been no response to our request for more information from the original author. Currently, there is not enough information provided for us to take action. Please reply and reopen this issue if you need additional assistance. |
@AllanOricil @DougMidgley @mdonnalley sorry for the delay, I was very busy by a go live last days. You can add the following tag to your manifest :
You can have the same issue with matching rule that you can solve with same kind of tag :
Hope will help Best regards |
So when using the SharingRules tag it works, but when using SharingCriteriaRule it does not, even though it is supported in the coverage report ( https://developer.salesforce.com/docs/metadata-coverage/51). The metadata docs (https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_sharingrules.htm) are contradictory - they provide an example using the Subtype
but also say it cannot be used
A further discussion can be found here - scolladon/sfdx-git-delta#99 in detail |
@DougMidgley Hope Salesforce will solve this issue soon but at least we have a work arround : |
I'm still getting this for SharingCriteriaRule: The workaround will not work for me, since we build the package automatically as part of our CI/CD process. Hope that someone in Salesforce can fix it soon... |
I was able to display the sharing setting changes via SFDX, displaying exclusively the object that was required to modify the sharing setting. When displaying the object in the object's meta file, this information travels: On lines 234 and 258 shown in the image is the configuration of the sharing setting within the object Regards Nerio Villalobos (DevOps Salesforce & SFI of LabsXD) |
Summary
Running sfdx force:source:deploy on a sandbox doesn't deploy sharing rules metadata
Steps To Reproduce:
Expected result
Actual result
Additional informartion
Deployment of sharing rules is working with sfdx version 7.45
The text was updated successfully, but these errors were encountered: