Home How to convert sObject to String in Apex?

How to convert sObject to String in Apex
To convert sObject to String in Apex, below i s the simple code

Example:

public sObject searchAccount;
String objType = String.valueOf(searchAccount);

Leave a Comment