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
179 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
82 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
105 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
418 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
33 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
179 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
178 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
768 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
264 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
122 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
288 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
789 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
117 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
605 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
959 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
969 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....
0
votes
2answers
430 views

Can protected custom settings records be retrieved via SOQL Query?

I have installed a managed package that comes up with a protected custom setting.I have its name and other information. For some testing purpose, I need to update its record in the org. I have tried ...
2
votes
2answers
147 views

What are the best approaches to follow when you create lightning components for managed pakage?

We created lightning components -without namespaces- and tested them successfully. At the time of packaging, (when a namespace is added) we had to prefix nameSpace__ before every field name, object ...
3
votes
2answers
944 views

Check if Lightning component type exist before creation

Is there any way to check dynamically if lightning component of provided type exists? Here is the thing. I know only type name of the component (e.g. MyTestComponent), and my logic needs to check ...
7
votes
3answers
1k views

Get current namespace in Lightning

If we have a lightning component, which is a part of managed package, is possible somehow purely from js code to figure out current namespace, i.e. without sending additional request to the server? I ...
3
votes
1answer
819 views

How To? Namespace and multiple dev orgs

What is the best practices to use multiple dev orgs while developing app that will be distributed as Managed Package with Namespace prefix. The problem: Once Namespace has been created, there is some ...
1
vote
1answer
155 views

Get remote action query results without namespace

I'm working in a managed package and I want to use the less references to the namespace (CI proposes ). For now I would like to know if it's possible to get records from my controller in my ...
1
vote
1answer
52 views

Dynamic specification of namespace for static classes/class instances

Ordinarily, when referencing a static class in a managed package from outside, we would do this: ns.Class1.foo(); Now, if the ns package is somehow uninstalled, this code should stop working, I ...
1
vote
0answers
142 views

Package org adds namespace prefixes to $Setup and $Label references - sometimes

In order to establish separate developer orgs for package development, I'm removing namespace references from the code held by a package org. However after a Visualforce page is saved to the package ...
1
vote
0answers
49 views

Renaming Namespace for a Managed Beta package

I have a Managed Beta Package in Dev. Org. with a Namespace. How can I rename the Namespace in the same org. I'm trying to avoid opening a new Dev. Org and migrating components and code to the new ...
4
votes
1answer
126 views

Best practices to follow to organize classes/pages based on app?

Currently we have multiple applications in our client org. It's hard to identify which components like Apex Classes, Visualforce Pages, etc belong to each application unless we look into each ...
1
vote
1answer
251 views

A class in one namespace dynamically instantiating an object outside its namespace

I have a managed package with namespace myNamepace and a class ClassA which resides in that package will be dynamically instantiating objects of all subclasses of a particular abstract class ...
4
votes
0answers
236 views

Unable to add namespaces to lightning component markup using MavensMate

I have enabled a namespace in my org, and am attempting to add markup to lightning components per the Namespace Usage Examples and Reference documentation. The component saves successfully in ...
1
vote
0answers
271 views

No data produced from map, please check source profile and make sure it matches source data. NAmespace problem in wsdl link

I used wsdl link, salesforce triggering boomi and sending data. but it is showing error: "No data produced from map, please check source profile and make sure it matches source data." Initially it ...
0
votes
1answer
818 views

What is Namespace in salesforce?

What is meant by namespace generally and why we are using in salesforce. By using Namespace what we'll do in salesforce.
0
votes
0answers
464 views

Two different object with same API name, one is part of managed package. Getting collection store error

I have installed a managed package on my org. That managed package has an object with same API name as one of my custom objects. I have a trigger on my custom object where I query my object and assign ...
0
votes
2answers
127 views

Why using SLDS version 2.x updated standard visualforce layout even without “slds” wrapper container element?

I'm trying to sue the latest SLDS version 2.1.4 in a Visualforce page, but just including the Static Resource makes whole interface look very different even without including the wrapping "slds" class ...
9
votes
2answers
3k 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
581 views

How do I add a namespace to an existing project?

So I have been working on my project for 2 months. Now we are finally ready to start the process whereby we will bundle it up as a managed package and then release it into the Salesforce App Store. ...
2
votes
2answers
375 views

How to create a custom field outside of the namespace?

I am busy creating a managed package with my own namespace in Developer Edition, and would like to create a custom field on the Lead standard object that does not have my namespace prefixed. I will ...
11
votes
3answers
574 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 ...
6
votes
3answers
186 views

Why PageReference('/apex/').getUrl() fails on some Orgs and how to get NamespacePrefix from inside a Managed Package without using a SObject?

I'm using this pattern provided by @bigassforce here How can I get organization's namespace prefix or at least ALL namespace prefixes including org through any API String qualifiedUrl = new ...
3
votes
1answer
372 views

SObjectType name conflict in queries

I'm creating lookup fields on an object dynamically using the Metadata API, saving the name of a field as a Custom Setting and building queries dynamically. This works perfectly, but there is a ...
1
vote
0answers
34 views

Metadata Namespacing rules in Branch Org

I am using the FinancialForce Apex bindings to access the Metadata API on one of my orgs. I attempt to create and a related list to one of the Opportunity layouts. This related list refers to other ...
1
vote
3answers
122 views

SOQL error on enabling namespace

I have enabled namespace in my dev org. Namespace name - LightningMyth. When I write the following query in any class/trigger, List<Account> acc=[SELECT ID FROM ACCOUNT limit 1]; I get the ...
2
votes
1answer
563 views

Lightning component namespace error

I have working code in an org without a namespace. Trying to migrate the code to an org with a namespace seems to be causing a lot of trouble on the lightning side. Everything in APEX in fine. ...
4
votes
2answers
2k views

Adding Namespace to the code

While moving code from developer org to packaging org using ANT in few places of the apex code we need to prefix the packaging namespace. Is there any way to automate this process? For instance: ...
3
votes
0answers
226 views

Can a managed package be managed through different licenses?

In the context of this question: Can two managed packages utilize common core libraries and other questions concerning managed packages and extensions... For any two apps that share a lot of code, ...
0
votes
1answer
2k 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
0answers
36 views

Given the name of a managed package, how can I find the namespace prefix? [closed]

I know this can be done with a metadata retrieve and by examining the package.xml. Is there an easier way?
2
votes
0answers
67 views

ApexPages Namespace -Prefixing discrepancy

Component, Message classes belong to ApexPages namespace, but for some reason the below is possible(without namespace prefix on the Component class). The below line does NOT compile if prefixed with ...
1
vote
1answer
70 views

Loading test data and honoring namespace

I have custom objects with some standard fields and some custom fields and I want to be able to load test data using Test.loadData() and static resources. The trouble is that I can't hard-code the ...
0
votes
0answers
118 views

Issue with Global Describe get vs containsKey when using namespace and Execute Anon vs Apex

Ok, so a different spin here to this: Issue with GlobalDescribe Field Results and Managed Package I do not think it should be doing this... When executing via the execute anonymous in dev console: ...