Questions tagged [namespace]
Although namespaces are not available for use in Apex code, they are used by the system to segregate components which are part of managed packages.
196 questions
0 votes
1 answer
31 views
Salesforce link namespace
I having issue in connecting namespace. let me explain my problem In my development org (using 2GP) i have Enabled DevHub without creating the namespace. so if I need to create a managed package then ...
2 votes
1 answer
140 views
Field-Level Security Issues during Managed Package Creation: Test Class Works Fine in Org but Fails During Managed Package creation
Hello Salesforce Community, I am facing an issue where my test classes work perfectly in the org (with the test user having an admin profile and the necessary permission set assigned) but they fail ...
0 votes
0 answers
63 views
Calling apex function from LWC in a namespace org throwing Internal Server error with inner class type parameter
Getting this error when calling Apex controller function from LWC imperatively. An internal server error has occurred Error ID: 1279104205-112203 (1331282577) This works fine in a non namespace ...
3 votes
1 answer
182 views
Why can't I make my packaged code not namespace-agnostic?
For my company, I created this Open-Source app to showcase Agentic AI in Salesforce before Copilots and Agentforce came out. To make it easily installable as Unlocked Package in several orgs we ...
2 votes
1 answer
413 views
SOQL error on Same-Name Fields in 2nd-Generation Package
I have a 2nd-generation package that includes an Apex Class which is able to read from custom fields inside the org it's installed in. I have multiple packages using the same namespace, let's call it ...
0 votes
1 answer
145 views
Will Lightning Web Components get my managed package prefix?
I am wondering if lwc gets a managed package prefix. If the prefix is "ABC", will the component look like ABC__myComponent.js, etc. in VS Code or on an org or will it stay on the default ...
1 vote
1 answer
223 views
Problem with namespace referencing in LWC in package deployment
We are trying to deploy our package, but a weird error is thrown: The thing is, in that LWC, we are in fact NOT adding the namespace when importing those fields: import PRODUCTO_FIELD from '@...
1 vote
0 answers
50 views
Expected name collision behavior between 2GP managed package and 2GP unlocked package with same namespace
I am trying to understand the expected behavior for the following scenario: Under the same dev hub, I have developed a pair of 2G packages. Both of them share the same namespace (myns): Package A: 2GP,...
1 vote
1 answer
218 views
Second Dev Org for 1st Gen Package Developement
Having recently joined an ISV with an old 1GP, I want to make some significant improvements to the code. (We are planning a new 2GP, but not just yet). Making major changes in our single Partner Dev ...
1 vote
1 answer
236 views
2GP managed package:version:create No such column xxx on entity
I get the following error when I try to create a 2GP version using SF CLI. No such column 'Mynamespace__Opportunity__c' on the 'Mynamespace__Contract__c' entity. If you're trying to use a custom field,...
0 votes
1 answer
194 views
Multiple unlocked packages with different namespace possible in one salesforce org?
Hello Salesforce Ohana, I am looking for suggestions/help if someone has implemented Unlocked packages with multiple namespace in single org as we have 3-4 applications in salesforce and we are trying ...
1 vote
1 answer
101 views
Modify/Alter Namespaced Unlocked Package data and metadata
What I am facing is that, I have an Unlocked Package without a namespace and I am able to alter/modify in that package, but in another package which is namespaced I am not being able to make any ...
1 vote
2 answers
560 views
2nd Generation package should be developed in which org?
I am quite confused with the 2nd generation package dev process. Based on the documentation here, https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/sfdx_dev_dev2gp_before.htm I ...
1 vote
0 answers
235 views
Is there an easy way to get the namespace of an LWC component (without calling Apex)?
Use Case: I want to be able to debug even JS resources, but when the managed package is installed I want to use the minified/obfuscated version of the JS library. Basic idea: For the purpose, I am ...
0 votes
1 answer
198 views
SOQL always append the managed package namespace to the custom field (Custom field API name colision)
On my managed package, I have a custom field: namespace__A__c The user also has a custom field A__c If I do the following SOQL (dynamic or not) SELECT Id, Name FROM Contact WHERE A__c != NULL it ...