You need to sign in to do that
Don't have an account?
The new Learner
How to cast sobject to a specific object in apex handler class
Hi Experts,
Can anyone let me know how to cast sobject to a specific object vice versa please. below i am getting the records, now i want to cast that object to specifi object.
SObjectType objectType = records.getSObjectType();
Can anyone let me know how to cast sobject to a specific object vice versa please. below i am getting the records, now i want to cast that object to specifi object.
SObjectType objectType = records.getSObjectType();
Footprints on the Moon
Try with below code snippet-
Let me know if this helps!