-
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
Cannot exclude List Views with .forceignore after CustomObject retrieval #938
Comments
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. |
@jcarmignani that's a very old version the cli. Can you verify it doesn't work with a newer version? There's also an opt-in for using a newer version of the .forceignore finally, try these changes: ignore syntax in v2 follows git: https://git-scm.com/docs/gitignore |
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. |
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. |
@mshanemc I have updated my version of the CLI using following command: Then I have modified my .forceignore file as you suggest: Eventually I have retrieved Metadata using the following manifest: I am still facing the same issue with the List Views: Any suggestion? |
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. |
This issue has been linked to a new work item: W-9959024 |
hi @jcarmignani I was able to add a listview to the by adding
I was able to ignore all listviews from all objects and by adding
I was able to ignore just the custom object Broker__c's list views |
This should be fixed in latest sfdx v7.130.1 🎉 |
Thanks for providing a permanent fix to this issue :) |
Summary
Short summary of what is going on or to provide context.
I would like to exclude from metadata retrieve all the List Views that are fetched while using:
sfdx force:source:retrieve -m "CustomObject:Account"
Steps To Reproduce:
Insert the following lines in the .forceignore file:
# Exclude listViews **listViews **.listView-meta.xml **.listView
Then retrieve the Account object:
sfdx force:source:retrieve -m "CustomObject:Account"
Then check that the listViews folder is still there and the metadata for listViews as well:

Expected result
listViews folders should be empty or all listViews folder should be removed from the SFDX Project
Actual result
Describe what actually happened instead.
listViews folders are still there and nothing is changed despite adding some listViews patterns as part of the .forceignore file
Additional information
Feel free to attach a screenshot.
SFDX CLI Version(to find the version of the CLI engine run sfdx --version):
sfdx-cli/7.81.0-7b953c80d1 win32-x64 node-v12.18.3
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)

@oclif/plugin-autocomplete 0.1.5 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.2.0 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.9.1 (core)
@oclif/plugin-update 1.3.10 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-trust 3.4.3 (core)
alias 1.1.3 (core)
analytics 1.12.1 (core)
auth 1.4.3 (1.4.3)
config 1.2.1 (core)
generator 1.1.3 (core)
odaseva-dx 0.0.0
salesforcedx 51.3.0 (latest-rc)
├─ salesforce-alm 51.3.0
├─ limits 1.0.4
├─ user 1.1.2
├─ schema 1.0.4
├─ custom-metadata 1.0.11
├─ apex 0.1.4
├─ templates 51.3.0
└─ @salesforce/sfdx-plugin-lwc-test 0.1.7
sfdx-cli 7.81.0 (core)
OS and version:
The text was updated successfully, but these errors were encountered: