-
Notifications
You must be signed in to change notification settings - Fork 407
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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 Retrieve Name spaced metadata in OrgBrowser #5651
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. |
Hello @Amit-Tripathi 👋 It looks like you didn't provide all the required basic info in your issue. If you haven't already, please provide the following info: Here's an example of a set of required info that will pass the validation: A few more things to check:
Thank you! |
Hello @Amit-Tripathi 👋 Have you tried updating to the latest version of the Salesforce Extension Pack? Latest: We suggest you to update to the latest version of the Salesforce Extension Pack in the VSCode Extensions view and confirm that you're still seeing your issue. |
Salesforce Extension Version in VS Code:61.1.2 This issue was reported on my behalf - the requested version details are above. |
Hi @eriksinnard, thanks for creating the issue. I was wondering if you tried refreshing the org browser (Open Command Palette > Run command |
@CristiCanizales I performed a refresh using the refresh button in the org browser and using the SFDX: Refresh Types command at the command palette and I still do not see any namespaced components in the org browser. I tried this against all of the org types I have access to; scratch orgs, sandboxes, and trialforce production orgs and I see the same behavior. To eliminate any issues with local configuration, I set up a new SFDX project in a Salesforce CodeBuilder instance and connected to a default org with several managed packages installed. In all of these cases, I still do not see any managed components in the org browser. Please let me know if I can provide any additional detail. Thanks! |
Hi @Amit-Tripathi @eriksinnard, I spoke with my team and CLI Team, and we believe the org browser is working as expected. The reason the components in managed packages are not visible in org browser is that they shouldn't be retrieved - they're able to be used but users aren't supposed to see their code and thus we would have to figure out how to implement this limited visibility to make the components read-only. That being said, your issue is a very common feature request, and we do agree that we haven't added adequate support for package-based development across a number of our features. Given the recent uptick of this issue across IDEx and CLI Teams, we'll be revisiting this in our next planning session. Thank you for your patience, and we'll keep you in the loop with any updates. |
@daphne-sfdc that is an excellent point when it comes to managed components containing code. I used Apex Classes in my testing to correspond with @CristiCanizales example, but in the real world I wouldn't expect the org browser or the CLI to return the code of an apex class/VF page/Aura Component/LWC. So where those components are concerned I totally agree with your analysis. Where components are managed but can still be modified or extended by subscribers is truly the use-case we're hoping to address. As an example, all our subscribers add custom fields to our managed objects, but because the managed objects do not show in the org browser, interacting with these components becomes more difficult. I was expecting that this recent PR would update the functionality to expose managed components such as custom objects, flexipages, layouts, etc in the org browser, which would be extremely useful for a lot of our internal teams and our subscribers. With the additional context of this discussion I wonder if this PR was focused on exposing namespaced components from unlocked packages but still excluding namespaced components from managed packages? I'm inclined to think that may be why @CristiCanizales and I were seeing different behavior. |
Yes, the example that @CristiCanizales provided above is with an unlocked package - from investigating this issue we realized that namespaced components from managed and unlocked packages are treated differently, and rightfully so.
We did not consider this use case, but now that you mention it, it makes sense why you would want managed components to be visible in the org browser and why this is such a popular feature request. Our team will be talking about how we want to implement this during our planning. |
@daphne-sfdc That sounds great, thank you for the update! Don't hesitate to reach out if we can provide any additional context or feedback. |
This issue has been linked to a new work item: W-16112434 |
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming session. We prioritize feature requests with more upvotes and comments. |
While it's unbelievable that since the launch of OrgBrowser this feature is not yet available, there are two good news:
|
It's definitely doable with the CLI and that's a great option for folks comfortable working at the command line. The audience I'm trying working to enable is more on the app builder end of the spectrum. If I can give them the tools to get their work done without having to add working in at the command line to their skillset it opens up the platform to a larger pool across our team, our partners, and our customers. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Summary
Org Browser is not fetching name spaced metadata like Custom Objects, Flows, Page Layout, Custom metadata, Flexipages, Custom Settings and labels.
Org Browser is wonderful if we are working with unpackaged metadata but makes it difficult to support metadata from namespaces that are editable like objects, flows etc.
There was a fix pushed for issue- #1998, but it doesn't seem to be working hence raising another one.
Steps To Reproduce:
Expected result
All the components from the org with namespace should be listed in the org browser
Actual result
Only Unmanaged metadata with no namespace is listed in the org browser
Additional information
Feel free to attach a screenshot.
Salesforce Extension Version in VS Code: 61.1.2
Salesforce CLI Version: @salesforce/cli/2.45.6
OS and version: Windows_NT x64 10.0.22631
VS Code version: 1.90.2
Most recent version of the extensions where this was working: Not sure
The text was updated successfully, but these errors were encountered: