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.

learn more… | top users | synonyms

6
votes
2answers
179 views

SObject row was retrieved via SOQL without querying the requested field on managed package

So, we uploaded the managed package and installed it in a new org (as the clients would) but when accessing a vf page we get the error SObject row was retrieved via SOQL without querying the ...
4
votes
1answer
50 views

What is the correct way to resolve the namespace prefixed handle for an apex:chart?

The nearest parallel is RemoteAction methods. The difficulty is that it appears two ways in JavaScript: In a development org, the function is just available as MyController.getData In a managed ...
7
votes
1answer
336 views

Determining Namespace Prefix in JavaScript and Apex

When you have a dedicated Visualforce Page and can use modern JavaScript Remoting techniques, this is seldom an issue. But I'm looking at some historical code in a managed package like this: ...
1
vote
0answers
40 views

namespace problem migrating Reports & Dashboard

I have a problem moving Reports & Dashboard from my Dev Org to Production Org which has "Different Namespace". If deployed with eclipse it reports Error of namespace. Source Org:- DEV Org ...
9
votes
1answer
772 views

Getting “__r” relationship name from Schema.SObjectType.Fields

Say I have a master-detail relationship between two objects, Schematic__c and Part__c. I can SOQL query the master from the detail: [SELECT Schematic__r.Name FROM Part__c] If I'm building a query ...
1
vote
1answer
91 views

ref an Element in another Namespace using WSDL2Apex and SOAP API webservice call

I am trying to integrate with a web service which utilises two namespaces, and has elements which need to reference the other namespace. For example: <xsd:schema ...
3
votes
1answer
52 views

Why does my unpackaged Apex class have “packageVersions” XML tag and a namespace in IDE

ZenDesk is a third party customer support tool that integrates with Salesforce.Because they had a bug with their customizations, I wrote a scheduled class that went into their custom records after ...
2
votes
3answers
490 views

How to redirect to default namespace vf page from managed package vf page?

Question If I'm on a managed package page, how can I link to a visualforce page in the default namespace without hardcoding the instance? Background I'm building a skuid page that has a custom ...
1
vote
2answers
341 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 ...
1
vote
0answers
34 views

Not able to move class and Vf page in eclipes

I am trying to move files from salesfore 1 env to another env. I am trying to move files using eclipse. I have created and namesapace in salesforce env from where i am trying to move files. so when ...
1
vote
1answer
64 views

Salesforce Mobile Client Application Dealing with Package Namespace

We are releasing application through salesforce. The product contains two part, one is a salesforce application distributed in a managed package. The other part is a mobile piece using salesforce sdk ...
2
votes
1answer
219 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 ...
6
votes
1answer
173 views

Controller using the wrong namespace - Managed Package

I am working on developing a managed package (Package A) that integrates with a another managed package downloaded form the AppExchange (Package B). By integrate I mean, creating VF pages with the ...
5
votes
1answer
111 views

Get Namepsace for code at runtime?

I am in an apex class. Is it possible to get the namespace for this class at runtime? Reason, I serialise a pile of objects to JSON and the namespace is pre-appended on all the attributes. I wish to ...
2
votes
1answer
674 views

Implementation restriction: EntitySubscription only allows security evaluation for non-admin users when LIMIT is specified and at most 1000

I incorporated Andrew Fawcett's amazing enterprise patterns (code here on GitHub) into my managed extension package (Namespace MY_PACKAGE_NS). In one of my CustomObjects after insert triggers I need ...
3
votes
1answer
90 views

How can my code tell if it's inside the packaging org?

I can think of at least three different 'environments' for my code: installed, in a customer org, unmanaged, in a cloned dev org, managed, in the packaging org, The first case can be covered by ...
9
votes
8answers
1k views

Does Schema.GetGlobalDescribe() Account for Prefixes?

It seems to me that in my dev org at least, the keys for the map returned by Schema.GetGlobalDescribe() do not use namespace prefixes... so does anybody know what happens when there are two objects ...
2
votes
1answer
516 views

Getting namespace prefix of an org

I have a dev org, in which I have got a namespace prefix. In apex, I want to get this namespace prefix as string. Is there any straight way or I have to describe some object?