forcedotcom / salesforcedx-vscode

Salesforce Extensions for VS Code
https://developer.salesforce.com/tools/vscode
BSD 3-Clause "New" or "Revised" License
940 stars 397 forks source link

Org Browser - Incorrectly loading standard salesforce Custom Applications #5598

Open GeekStewie opened 1 month ago

GeekStewie commented 1 month ago

Summary

Short summary of what is going on or to provide context.

Steps To Reproduce:

  1. Connect to Salesforce org
  2. Open Org Browser and expand Custom Applications type
  3. Done

Expected result

Standard Salesforce applications should be listed with api name standard and then the name like standardsales

Actual result

The standard prefix is being duplicated. So Sales for example is shown as standardstandard__sales.

Screenshot 2024-05-16 at 13 17 50

Additional information

This also applied when I tried to retrieve the metadata. Screenshot 2024-05-16 at 13 08 07

Salesforce Extension Version in VS Code: Latest as of 16 May 2024

Salesforce CLI Version: @salesforce/cli/2.41.8 darwin-arm64 node-v18.18.2

OS and version: MacOS Sonoma 14.4.1

VS Code version: Version: 1.89.1

Most recent version of the extensions where this was working: Unknown

git2gus[bot] commented 1 month ago

This issue has been linked to a new work item: W-15780506

daphne-sfdc commented 1 month ago

Hi @GeekStewie, Thank you for filing this issue. Yes, I am able to reproduce it in my project, and it is a bug. I have created a bug work item in our backlog and our team will prioritize it during our grooming session next week.

I do have a workaround for you while we work on getting this fixed. Create a manifest with the below contents.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>standard__Sales</members>
        <name>CustomApplication</name>
    </types>
    <version>60.0</version>
</Package>

You can add as many members to this manifest as you want - I added standard__Sales because that was the one in your screenshot.

Then run SFDX: Retrieve Source in Manifest From Org in the command palette, and the application should be retrieved.

Screenshot 2024-05-16 at 9 50 04 AM

Sorry for the inconvenience!