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
35 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?
1
vote
0answers
251 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,...
8
votes
2answers
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 ...
3
votes
3answers
534 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 ...
1
vote
1answer
30 views

Managed Package on Sandbox : Namespace is not removed and the entire app just crashes

I've installed a managed package (released version) on a sandbox and it doesn't work because Namespaces are not removed on the Custom fields API name from Lightning component controllers : From my dev ...
5
votes
2answers
789 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%...
0
votes
1answer
1k 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 ...
1
vote
1answer
535 views

Aura event namespace lightning component package

I went through an example showing contact list search etc. In the SearchBarController.JS we have this line: var myEvent = $A.get("e.**namespace**:SearchKeyChange"); And this works fine where ...
1
vote
0answers
38 views

Best practice to avoid naming collisions - lwc app

I wonder what is known best practice to deal with name collisions for salesforce lwc applications. Do we need to prefix names of classes, components, etc. with abbreviations. Unlocked package with ...
0
votes
0answers
16 views

Not able to read CustomObjectTranslation using namespace

I’m not able to readMetadata() CustomObjectTranslation using namespace, it doesn’t return anything (gives null). I have no problem with standard objects or unmanaged custom objects. Also, I’m using ...
11
votes
3answers
734 views

referencing static resources in lightning components with dynamic namespaces

We have a lightning component thats part of our appexchange package. We have development environments with no namespace, a beta/staging package namespace, and our production package namespace. Is it ...
2
votes
1answer
818 views

Creating workflow for custom object throws namespace error

I am trying to create workflows for all the objects on an Enterprise type account(test org created via partner portal). Using the meta-data API I am fetching all the objects and there are some custom ...
1
vote
1answer
138 views

ERROR running force:org:create: We don’t recognize this namespace: x. Did you register it in your Dev Hub org?

I am trying to create a Scratch Org with a Namespace using command: sfdx force:org:create -s -f config/project-scratch-def.json -a my-namespace -d 30 But I get this error: ERROR running force:org:...
0
votes
2answers
59 views

Managed package Custom Label inconsistencies develop through scratch org

We are recently facing some issue related to custom label when we are creating managed package and installing in another org the custom label value is not populating . Below is the code sample : ...
0
votes
1answer
19 views

setFixedSearchResults not working?

I have a test method calling setFixedSearchResults with 5 ids, and then a method performing an SOSL search. I expect my search to return 5 records. In fact, it did in my previous scratch org, test ...
0
votes
0answers
27 views

REST callout to another org - unable to access custom field due to it ending with __c [duplicate]

I am making a callout from my org to the REST endpoint of another org in our business. This is using the standard query endpoint /services/data/v48.0/query?q=SELECT+Fields+FROM+Contact+WHERE+.... ...
0
votes
0answers
26 views

Removing or restoring package name

In the first part id the tutorial bellow, created a package name for my account. Then i realized that probably all the components i already had would stop working, so i deleted that prefix, and ...
2
votes
1answer
32 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 ...
0
votes
1answer
23 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?
3
votes
1answer
45 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 ...
0
votes
1answer
23 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 ...
3
votes
1answer
139 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 ...
1
vote
1answer
187 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 ...
7
votes
2answers
1k 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 ...
0
votes
1answer
91 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 ...
1
vote
1answer
254 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
27 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 ...
0
votes
1answer
3k views

Error FIELD_INTEGRITY_EXCEPTION Failed to save undefined: NO TYPE named apex://TestSub.SubOne found

I have a namespace issue - at least that's what I think it is. I have a basic simple Apex Class with the following definition: public with sharing class TestSub { public class SubOne { @...
1
vote
1answer
27 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 ...
4
votes
2answers
3k views

Create Unmanaged Package from an org with Managed package

I have one dev org from where I have created one Managed package. I want the same package created as UnManaged package. So I created the Unmanaged package from the same org. But when i try to install ...
0
votes
1answer
451 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 ...
4
votes
1answer
499 views

How to specify namespace and partition for Org Cache when creating managed package?

I'd like to make an ISV App / Managed package that uses the Platform Org Cache. The clearest directions on how to do this are described in this trailhead. However, when writing my code, I am unclear ...
3
votes
1answer
219 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 ...
2
votes
0answers
80 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
390 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: ...
0
votes
0answers
209 views

Cannot create scratch with namespace

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

Namespace in lightning component

We have one dev org(without namespace) and one packaging org(with namespace) for developing lightning app. We are trying to access custom field in Lightning helper method as expence__c. It works fine ...
3
votes
1answer
94 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
149 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
258 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 ...
0
votes
1answer
243 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 ...
6
votes
1answer
185 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 ...
8
votes
1answer
3k views

Can't set lightning component controller

I am following the Trailhead "Create a Lightning Component" tutorial and I have reached the part where I have build the controller (Apex) and I am attempting to set the aura:component controller. My ...
4
votes
1answer
1k 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
86 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="...
1
vote
1answer
293 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
281 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
168 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 ...
2
votes
1answer
495 views

Custom settings in subscriber's org not accessible by managed code

I am currently migrating to a managed package and I wish I could copy unmanaged [protected -- in case it matters] custom settings values to the managed ones in my post install script. However, I'm ...
0
votes
1answer
296 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 ...