How to convert sObject to String in Apex

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


Example:


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

4 comments:

  1. What crap is that question? Have you nothing better to do?

    ReplyDelete