ads

Friday, 8 December 2017

Convert sObject To String Using Apex In Salesforce


Explanation :


public Contact Con = new Contact(LastName = 'New Contact');
String objTypeStr = String.valueOf(Con);
System.debug('objTypeStr===>'+ objTypeStr);


Debug Output :




No comments:

Post a Comment