You need to sign in to do that
Don't have an account?
Account acct = [SELECT Id FROM Account LIMT 1); Given the code above, how can a developer get the type of object from acct?
A. Call "acct.getSObjectType()"
B. Call "Account.getSObjectType()"
C. Call "Account.SObjectType".
D. Call "acct.SObjectType''.
B. Call "Account.getSObjectType()"
C. Call "Account.SObjectType".
D. Call "acct.SObjectType''.
Use acct.getsobjecttype() to get type of object.
Please refere below link which might help you further
(https://help.salesforce.com/articleView?id=000340200&language=en_US&type=1&mode=1)
Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.
Thanks and Regards
All Answers
Use acct.getsobjecttype() to get type of object.
Please refere below link which might help you further
(https://help.salesforce.com/articleView?id=000340200&language=en_US&type=1&mode=1)
Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.
Thanks and Regards
(corrected Que)
I've gone through your requirement and you can see the below code for get the record type of any sobject:
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com