You need to sign in to do that
Don't have an account?
SachinSankad
Retrieving lookup / reference object's fields from another object
Hi All,
I want to retrieve all fields of reference object/lookup object from another object.
I have one picklist to select object, after selecting another picklists containing fields of object get populated.
So i want to retrieve all fields of reference/lookup object in fields picklist.
Please help me to retrieve those fields. Please share reference/sample code.
Thanks
Sachin
Map<String, Schema.SObjectField> M = Schema.getGlobalDescribe().get('account').getDescribe().fields.getMap();