You need to sign in to do that
Don't have an account?
Sumit Kumar Singh 9
Schema.getGlobalDescribe() not working in API version 36
Hello Experts,
I am experiencing an unexpected situation. Below code works fine in API version 26 but in API Version 36, Its throwing an exception "Attempt ro re-deference a null object."
I debug it and came to know that "objToken" is coming null. Why???
I am experiencing an unexpected situation. Below code works fine in API version 26 but in API Version 36, Its throwing an exception "Attempt ro re-deference a null object."
I debug it and came to know that "objToken" is coming null. Why???
String objectName = 'Account'; SObjectType objToken = Schema.getGlobalDescribe().get(objectName); DescribeSObjectResult objDef = objToken.getDescribe(); Map<String, SObjectField> field = objDef.fields.getMap();
Thanks for your response.
It didn't work in Dev acount with API version 36.
I could re-write in one line; but the problem is that it's also not working in API version 36. Thanks,
Sumit Kumar Singh