You need to sign in to do that
Don't have an account?
naresh reddy 18
Schema.SObjectType.CnP_PaaS__Contact_Mail_ids__c.fields.getMap() is empty
HI Friends,
My managed package was installed in a customer instance. In that perticular instance only I have this problem.
Map <String, Schema.SObjectField> customfieldMap = Schema.SObjectType.CnP_PaaS__Contact_Mail_ids__c.fields.getMap();
Problem is, customfieldMap is empty. My package is used by many cusotmers every where its working fine but only in this instance we have this problem.
Can any one please let me know the reason for customfieldMap empty?
Thanks in advance,
Naresh
My managed package was installed in a customer instance. In that perticular instance only I have this problem.
Map <String, Schema.SObjectField> customfieldMap = Schema.SObjectType.CnP_PaaS__Contact_Mail_ids__c.fields.getMap();
Problem is, customfieldMap is empty. My package is used by many cusotmers every where its working fine but only in this instance we have this problem.
Can any one please let me know the reason for customfieldMap empty?
Thanks in advance,
Naresh
I solved the problem. Pls open the your managed package detail page in "Installed Packages" menu. The check the API Access option. That should be unrestricted. Now my code is working fine and
Map <String, Schema.SObjectField> customfieldMap = Schema.SObjectType.CnP_PaaS__Contact_Mail_ids__c.fields.getMap();
This map is with right values now.
Thanks,
Naresh