Closed pgumiela-wbd closed 1 month ago
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.
@pgumiela-wbd - I understand the frustration of working with the metadata api, and all of it's limitations. Unfortunately there's nothing that the CLI team can do, we send the data, and the server responds. This will need to be fixed by the feature team. I'll pass along this request, but unfortunately can't help ☹️
Summary
This bug report is related to the following known issue: https://issues.salesforce.com/issue/a028c00000qQ8ldAAC/invalid-scopemine-error-when-deploying-listview-with-metadata-api
I know it's archived, but we've asked SF Support to reopen it (Case #468724021) because it's still the case after 10 years and adds a lot of unnecessary overhead in maintaining List Views.
Steps To Reproduce
The steps are briefly mentioned in the known issue. It can be easily reproduced by creating a List View with Everything Scope on a sandbox/scratch org, retrieving it locally, changing the scope to Mine and trying to deploy it back. It'll throw the following error:
Expected result
Changing the scope to Mine or creating a new List View with Mine scope should be possible.
Actual result
It is not possible to create a new List View with the scope Mine or change the scope to Mine on an existing List View.
System Information