Closed scott-arcus closed 2 years ago
I had a similar issue. Had a list view and record type on a custom object with the same developer name.
After retrieve, the record type meta file ended up in the listViews folder.
I fixed the issue by renaming the list view on the server, moving the record type meta file to the recordTypes folder, retrieving the sobject, then deleting the list view with the old name from local.
W-8395553
This issue has been linked to a new work item: W-9299447
Summary
Giving a list view the same name as a record type causes the pull command to place the list view metadata files into the record types folder in the source project structure. It is also the case that if you delete the list view from the Salesforce org then pull it will delete the record type metadata file locally.
Steps To Reproduce:
Expected result
Local source should contain 1 record type metadata file in the record types folder and 1 list view metadata file in the list views folder.
Actual result
Local source contains 1 record type metadata file in the record types folder and 1 list view metadata file in the record types folder.
Additional information
SFDX CLI Version(to find the version of the CLI engine run sfdx --version):
sfdx-cli/7.75.0-5521f40d11 win32-x64 node-v12.18.3
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)
OS and version: