How to convert from sObject to String using Salesforce Apex Class
To convert sObject to String in Apex, below i s the example,

public sObject searchContact;
String strObjType = String.valueOf(searchContact);

Written by 

Salesforce MVP | Lightning Champion | 17x Salesforce Certified | Application Architect | 7x Trailhead Ranger | Techforce Services | Australia

Leave a Reply

Your email address will not be published. Required fields are marked *