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.

Filter by
Sorted by
Tagged with
1
vote
1answer
12 views

Do 2nd Generation Managed Package name space dev org's expire?

Say I'm developing a 2nd generation package (managed or unlocked) with a new namespace and I create a developer org and register the new namespace in it and link the namespace to my devhub. Do I need ...
1
vote
1answer
20 views

Unlink Namespace Dev Hub

Obviously you can link a namespace to a Dev Hub, but is it possible to unlink a namespace from a Dev Hub and link it to a new one?
0
votes
1answer
22 views

Link Namespace window throwing an error

When I click the "Link Namespace" button, it pops up a new window and then give this error: Is the only way to resolve by contacting support?
0
votes
0answers
68 views

Failing this.template.querySelector

I have a component and am trying to retrieve an element from the template using querySelector, as follows: const elt = this.template.querySelector('.thunder-ng'); But instead of returning the element,...
0
votes
1answer
21 views

Prefix on fields & Objects - New Implementation

I have a new implementation where i want the fields and objects to have a prefix (e.g. ggtest_ ). However, this is neither a managed package nor a solution that is going to be as a partner. We also ...
1
vote
1answer
41 views

Considering for developing code for managed package

I have a question in managed package. Let say I am writing a SOQL query in Apex class as /* Apex */ [SELECT Id, custom1__c, custom2__c, custom3__c FROM CustomObject__c]; /* VF or Aura */ <input ...
3
votes
1answer
122 views

Visualforce Component wrapped in a Managed Package Visualforce Component throws the error: Unknown component c:mycomponent

I have a managed package installed in a subscriber org. The managed package contains a Visualforce Component that I want to use in subscriber org. My goal is to use a subscriber org VF component ...
5
votes
3answers
281 views

Organize Managed Package Dependencies with Unlocked Packages

I build Managed Packages (with namespaces) for my ISV customers. I use external libraries and Open-Source frameworks like fflib or apex-domainbuilder and find dependency management gets more ...
0
votes
1answer
41 views

Attaching namespaces to mdapi object before deploying to a sandbox org?

I am currently deploying my Salesforce code to a qa sandbox environment with the mdapi (sfdx force:source:convert -> sfdx force:mdapi:deploy). However, we need the object and pages and etc when ...
2
votes
1answer
275 views

Link Namespace error=invalid_client_id&error_description=client%20identifier%20invalid

Following occurred while executing this Build First Generation Managed Packages with Salesforce CLI - Setup your Dev Hub Playground Trailhead error=invalid_client_id&error_description=client%...
3
votes
1answer
25 views

Problem with object layouts and custom global actions in package (2GP)

So I'm trying to install a new 2GP package that has an object with a custom global action as part of it's page layout. I'm running into problems and I'm wondering whether I've missed something or if ...
1
vote
1answer
134 views

Why did my lightning components stop showing up on my record pages in my scratch org after including my namespace?

I am using custom permissions to control when my lightning component appears on a given flexipage record page. The intent here is to make it easy for an admin to use a UI that I made to toggle ...
1
vote
0answers
22 views

Second Generation Unlocked Packages without Namespace not including components

I'm trying to create a package version for an Unlocked Package with no namespace specified. I can verify this works when running force:package:list and force:package:version:list. I'm including some ...
1
vote
1answer
23 views

Adding a namespace to already released packages

We already have released one unlocked package in production for six months, without namespaces. We are considering developing new unlocked packages, and we were thinking about using namespaces and ...
0
votes
0answers
74 views

Manage package of einstein analytics assets give the issues with datasets connection

I created a simple analytics dashboard with two different lenses of the different dataset, I connect those datasets using https://help.salesforce.com/articleView?id=...
0
votes
0answers
52 views

Namespace Prefix Problem with Einstein Analytics Assets

Description : We created Einstein Analytics dataflows, datasets, dashboards and apps. It running Properly, for manage packaging I set namespace prefix in org after creating analytics assets. After ...
0
votes
1answer
162 views

How can I include translations in my managed package?

I want to include translations in my managed package so that all the text in my managed package matches the user's locale if I included a translation for that locale. What I have done so far: So far ...
2
votes
0answers
49 views

SFDX Snapshot - Unsupported snapshot signup request fields: Namespace

How to create a scratch org from a snapshot with namespace? Any workaround or solution? Error { "status": 1, "name": "INVALID_INPUT", "message": "Unsupported snapshot signup request fields: ...
3
votes
1answer
185 views

Cannot add component of type:CustomObject to another package because it is an installed component

I created a package and now I want to create a dependent package. Let's say the parent package has a custom object: namespace__Application__c In my child package, under the objects directory, I have: ...
3
votes
1answer
138 views

@namespaceAccessible class's properties are not accessible from another package

I am trying to create two second-generation (2GP) packages with the same namespace but running into an issue where one of the packages is not able to access the properties of a class from the other ...
0
votes
0answers
98 views

Cannot create scratch with namespace

I've linked namespace, set up sfdx-project.json { "packageDirectories": [ { "path": "force-app", "default": true } ], "namespace": "vpv", "...
2
votes
2answers
308 views

Proper namespace syntax for importing static resource into LWC?

I have a static resource named 'myResource' that contains a javascript file 'myfile.js' I can correctly import like this: import myResource from '@salesforce/resourceUrl/myResource'; Then when I ...
3
votes
1answer
59 views

Why connected apps added to a manage package do not have a namespace prefix?

I've created a managed package and included a connected app into it. Say its name is 'MyConnectedApp'. My target org already contains a local connected app, also called 'MyConnectedApp'. So when I ...
1
vote
1answer
112 views

Why the AuraEnabled method throws an internal error when a namespace is enabled

We used nested classes in LWC controller to have a single class with all the AuraEnabled parameters. That works in a no-namespace environment but stops working when we either package that or deploy to ...
0
votes
2answers
143 views

Managed Package: Aura Component and JS Controller and Helper files are not resolving the API names of custom object and custom fields

Aura Component and JS Controller and Helper files are not resolving the API names of custom object and custom fields In one of our Partner Dev Org, I am working on an application, after development ...
6
votes
1answer
157 views

Type.forName(..) returns null for Unlocked Package with Spring 20' release

It seems that Salesforce Spring 20' release made public classes part of Unlocked 2GP not accessible when @namespaceaccessible is not mentionned. That has a huge impact. I thought this annotation was ...
0
votes
1answer
115 views

How can I pass a GET query param into my server side APEX controller?

Background: I am trying to redirect a user from an external site to my salesforce visualforce page with a GET query param as part of the URL. (This is part of a managed package) I want that parameter ...
0
votes
1answer
26 views

Unable to find action 'getMenuRecords' on the controller. How can I apply my namespace(eioApp) to make this app work

Here is components to this app The App <aura:application extends="force:slds" > <c:listOfMenu /> </aura:application> Here is ListOfMenu Component <aura:component controller="...
5
votes
2answers
616 views

Inter-namespace communication with LWC

I need to develop two components, in two separate namespaces, that can interact with each other. As per the product documentation it is not possible (yet) to write a component that uses a componentĀ ...
1
vote
1answer
130 views

How to reproduce and fix error “$Label.namespace.LabelName does not exist”?

How to reproduce and fix error "$Label.namespace.LabelName does not exist" while the label actually exists and namespace is correct but lowerspaced? There is an interesting bug in Salesforce platform,...
1
vote
1answer
204 views

LWC Access denied error referencing namespace problem

We have a JavaScript utility class containing two properties, like: class DateRange { start; end; constructor(start, end) { this.start = dateToIsoDateLocal(start instanceof Date ?...
0
votes
1answer
131 views

Multiple managed packages with the same namespace (first gen)

I've created two managed packages using the second gen process but they can't currently be submitted for appexchange review. I'm in the midst of downgrading the packaging process - the documentation ...
3
votes
1answer
724 views

Unable to access Apex in namespaced scratch org

Note: Checking this potential duplicate didn't help. I have a project which uses SFDX and LWC and recently converted it to have a namespace (later it should become a Managed Package). I successfully ...
0
votes
1answer
192 views

force:recordData custom object and fields in managed package

We are using force:recordData to get a custom object record to the lightning component's JS like so: Component: <aura:attribute name="recordFields" type="Custom_Object__c"/> <aura:attribute ...
6
votes
1answer
689 views

Who has taken “my” Managed package namespace? Can we find out?

I wanted to use my company name as a Namespace Prefix of a new Managed Package App...and it was already taken :-(. Is there a way to find out who or which existing app uses it? Technically or by ...
2
votes
0answers
69 views

sfdx force:source:deploy to a namespace org needs process builders to have namespace in all fields in xml file

I am trying to deploy a process builder from a packaging org to another org where the package is installed created out of same packaging org. sfdx force:source:deploy -m "Flow:Change_C1" -u sfdxmove ...
0
votes
2answers
111 views

Get NamespacePrefix for a given Package Id (in org with LMA app)

Is there a way to get the Namespace Prefix of Managed Package where I just have the Id of? Maybe it is helpful that my code sits in the same org as the LMA app in with its sfLma__Package__c objects. ...
1
vote
1answer
138 views

Namespace Registries not showing up anywhere

I am an administrator and I cannot find this app anywhere to link a namespace in a developer org. Why does this seem so incredibly hard to do? All the examples that say create SalesforceDX permission ...
3
votes
1answer
48 views

How to test DX-namespaced package in regular sandbox

While developing managed packages with DX I constantly run into the following problem: My developers use DX scratch orgs and the code uses the namespace we also latter use in the packaging org. My ...
3
votes
1answer
2k views

SFDX & How to handle namespace in lwc with a managed package?

I'm developing some lightning-web-components for a managed package with namespace example7. For all my previous dev work on this managed package, I was using aura rather than lwc, and developing in a ...
1
vote
0answers
249 views

Create a scratch org with a namespace, but without DX project structure

We are trying to use sfdx only to spin up scratch orgs with desired configuration (we have a standalone config file, scratch-org-def.json to feed to force:org:create command). Our project is in old ...
0
votes
0answers
53 views

avoid salesforce namespace dependency when packaging

I am trying to figure out a way to completely avoid appending namespace when deploying code to my packaging org. I have found options stated online that using custom settings,labels , querying ...
0
votes
1answer
740 views

Apex class with namespace deploy via Metadata API

I want to deploy using metadata API. I have class classes/MyPackage__UninstallClass.cls with MyPackage namespace classes/MyPackage2__UninstallClass.cls with MyPackage2 namespace. But when I try to ...
8
votes
0answers
86 views

QuickAction.DescribeQuickActions Broken In Managed Packages

QuickAction.DescribeQuickActions() will return different results when called from a managed package context and unmanaged code. For a given entity type, for example Contacts, you must call ...
0
votes
1answer
77 views

Usage of namespaces for SFDX Projects

In the "Unlocked Packages for Customers"-Trail below "Simple Packaging Use Cases" it is recommended to create two completely new projects for the two different internal business applications (the ...
2
votes
2answers
363 views

What is the schema, the namespace and the Schema namespace

Can anyone help me understand what is the Schema, the namespace and consequently the Schema namespace ?
3
votes
1answer
11k views

Custom Script Eval error when developing a lightning component in an organization with namespace

I'm getting a "sorry to interrupt" error modal when trying a custom component I'm building. The component doesn't even load (the specified action in the afterScriptsLoaded doesn't even run). The ...
8
votes
1answer
3k views

Create scratch org with namespace?

How do I create a scratch org that has the same namespace as my Developer Edition org where the managed package is held? I've followed the instructions in the "Link a Namespace to a Dev Hub Org" page ...
2
votes
0answers
90 views

Lightning recordData - Namespace in Managed Package

We are using lightning:recordData to create new records from a lightning component. In my dev org I can so something like: cmp.find("myRecordCreator").getNewRecord( "MyObject__c", // ...
3
votes
1answer
220 views

Can a managed package query and list all the classes installed in a subscriber organization?

By querying the ApexClass object, one can list all the classes that exist within an organization. However, if the code which queries the classes is from a managed packaged, can it see all the records, ...