Convert String to Id #inSalesforce

Convert String to Id #inSalesforce


Use :

String str = 'theSalesforceTutorial';

Id myId = Id.valueOf(str);

system.debug('!!!id value!!!!',myId);


Comments