+ Start a Discussion
Wim van BeekWim van Beek 

Odd issue with creating package

I have a function to find all fields from an object
"map<string, Schema.SObjectField> FieldMap = schemaMap.get(ObjectName).getDescribe().fields.getMap();"
I convert it info a , delimmited string of fieldnames
Works fine and with
String SOQLtxt = 'SELECT ' + NNset.GetFields('User') + ' FROM User WHERE IsActive = true  ' ; 
I can us it perfect.
However when I deploy a package, it claims the fields like 'billingaddress' and 'shippingaddress' in account cannot be used. (idem for some fields in contact and user etc.) 
The testclasses in de IDE do not show these fields, in the packages-process they do.

Odd ...

Any Clue?

 
Best Answer chosen by Wim van Beek
ShashankShashank (Salesforce Developers) 
There is an explanation around this behavior given here: http://salesforce.stackexchange.com/questions/29304/with-json-how-to-serialize-the-accounts-shipping-and-billing-address