function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Map<String, Schema.SObjectType> gd = Schema.getGlobalDescribe(); Schema.SobjectType oType = gd.get(‘account’); account object_instance = (account)oType.newSObject();
sObject casting when you use generic sobject and then convert that into a concrete sobject.
example:- Thanks.
Adding in to previous response. If you need dynamic Objec casting you may refer:
https://developer.salesforce.com/forums/?id=906F00000008zKNIAY
Thanks
Sandeep Singhal