You need to sign in to do that
Don't have an account?
Namespace Prefix for Custom Objects
Hi,
I have a Flex application working with Salesforce.com. Based on object name I am doing some calculations in Flex side.
Standard objects don't require namespace prefix (e.g. xyz__) when controlling, but custom objects require it. So when I try to make a decision based on object name I need to create this logic:
if(Account) { } else if(Opportunity) { } ... else if(xyz_MyCustomObject__c) { }
But to do this I need to know the xyz namespace prefix. If I hardcode it, it won't be useful for other customers that install my application. Because they'll be able to create their custom objects and my flex app will handle their needs just based on custom object name.
Is there any solution to retrieve namespace prefix dynamically or refer the custom object without namespace prefix?
Thanks,
John