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
0
votes
1answer
34 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
48 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
97 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
55 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
18 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="...
3
votes
2answers
133 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
0answers
18 views

In an unlocked package with a namespace, do SOQL queries in apex methods automatically add the namespace when querying custom objects?

Let's say we have an unlocked package with a namespace of "xxx" which includes a class AirportUtils and a custom object named Airport__c. If I was writing a method in AirportUtils to query all ...
1
vote
1answer
52 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
73 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
44 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
125 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
0answers
30 views

“redirect_uri_mismatch” on “Link Namespace”

I'm trying to link a namespace to my Dev Hub org so I can develop a managed package, but when I click on "Link Namespace" in the Namespace Registries list, my pop-up auth window says: r=...
0
votes
1answer
65 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
672 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
48 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
70 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
69 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
44 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 ...
0
votes
0answers
57 views

Unlocked packages with namespace - visualforce page isn't loaded

I've two managed packages (classic managed package - not packaging 2.0). One is extension pack to the other. It uses classes, fields, objects and so on from core package. I'd like to create some ...
2
votes
1answer
805 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
141 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
49 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
270 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
80 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
66 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
218 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
8k 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 ...
7
votes
1answer
2k 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 ...
1
vote
0answers
81 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
106 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, ...
3
votes
0answers
209 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 ...
2
votes
1answer
633 views

Should we include namespace prefix in code for managed package in SFDX

We're ISV and already built quite a few managed packages. We've been including a namespace prefix everywhere in code (Apex classes, Lightning components etc.) as it's recommended by Salesforce. Now we ...
0
votes
1answer
139 views

Custom Label inconsistencies in Managed Packaged

We have two Orgs, DEV and SIT (SIT installed by managed package ), and both have namespaces. In SIT the dynamic reference to the custom labels do not work, but in the Dev org they work. Below is the ...
1
vote
1answer
65 views

Apex class getSimpleName() equivalent

I would like to get Apex class name without namespace prefix. I wonder if exists any equivalent method like known in Java getSimpleName() ? Existing method getName() returns apex class name with ...
0
votes
1answer
81 views

Working with namespace prefixes when a managed package can't be installed in sandbox

We have a managed package that connects our Salesforce org to an external application. Some fields from the managed package are writing information from Salesforce to the external app. So I want to ...
2
votes
1answer
295 views

Einstein (Wave) Analytics asset became unavailable after Namespace Prefix creation!

Description: We are using Einstein Analytics to create more insight on products our customers have, this requires creation of Einstein Analytics dataflows, datasets, dashboards and apps. We embed ...
2
votes
0answers
31 views

Using Packaging 2 can I reference a non namespaced field from a namespaced package

So, we're trying to convert out metadata into packages and namespaces, and it's proving to be difficult. Right now we have 2 different domains and we've created a namespace for each of those domains (...
0
votes
1answer
153 views

How do I keep Product namespace in DX Org after migrating from DE?

In our managed package we have 'XYZ' namespace in most of our product sourcecode. When we try to get this to DX, as per their guide here we must create an unmanaged package. Salesforce doesn't allow ...
1
vote
1answer
172 views

Schema Class throws exception after creating package

I am using Schema class to retrieve metadata of object. Controller : getCustomObject : function(cmp, event, helper) { var action = cmp.get("c.getCustomObject"); var objectName = component.get(...
3
votes
5answers
630 views

Get Namespace Prefix from calling class

I've got an issue with some managed package test classes (specifically CPQ test classes), where I'm running into SoQL limits when certain test classes execute. What I'd like to do is disable certain ...
1
vote
1answer
215 views

Managed package namespace issue

I have doubts with name-space appending with few scenarios scenarios are: Dynamic SOQL Schema.getGlobalDescribe() : using SOBJECT Storing field in custom setting Field Values. Do I need to merge ...
2
votes
0answers
103 views

Flows issue when deployed to packaging dev org

I have a set of flows that I want to include in a managed package. The flows were built in a dev/scratch org with no namespace. After deploying (sfdx) to the packaging org with a namespace, I get an ...
0
votes
1answer
188 views

How does Org Namespace in Request URI work from Apex Rest Web Service Test Class?

I am having big problem understanding how namespace works in the RequestURI of Apex Rest Web Services when you deploy them as part of a managed package, and hence, writing a proper Test Class for that,...
4
votes
3answers
610 views

What namespace to use when developing Lightning components for a managed package?

I have a managed package that is created from our "release org" to which the namespace has been assigned. I have developed some Lightning components for use via Lightning Out in a Visualforce page. ...
1
vote
1answer
105 views

Lightning component/Apex Namespace issue

I have a lightning component (controller) that calls Apex to save a new record in my custom object, Conversation__c. This was working fine pre-namespace, but after moving to an org with a namespace, I'...
8
votes
2answers
1k views

Lightning Components in Managed Package

Background We are developing an app where we use lightning components. Issue When are trying to package the components, package manager returns an error referencing to some custom fields that are ...
0
votes
1answer
483 views

Parse XML response (with namespaces) returns empty document via res.getBodyDocument()

I connect to Webex and retrieve the timezone list (XML with namespaces) and try to parse response via res.getBodyDocument() or doc.load but I only get document[]. I have read a lot of other similar ...
9
votes
1answer
617 views

How do I update a namespaced Custom Metadata Type record after making a package?

Here's the situation: We have a Lightning App that reads from a Custom Metadata Type to populate a settings/configuration page. Then you can edit the page and click save and that will create a ...
0
votes
1answer
38 views

Create namespace for the code pushed from dev org to prod org

Currently I am developing in a fresh dev org with no namespace created. I want to push this code to another dev org with namespace already created. How I can push the code with namespace included( ...
4
votes
1answer
740 views

Namespace replaced while saving a lightning component

When I use a Custom Label in a Lightning Component of managed package (with custom namespace), Salesforce changes the file and saves the label with the default namespace. For example, I save $Label....