function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TarentTarent 

ObjectToString

How do I convert Objects to String.
e.g.
Object ChildFieldValue = ChildRecord.get('FirstName);
string s = ChildFieldValue1 .toString();

Navatar_DbSupNavatar_DbSup

Hi,

Try the below code snippet as reference:

 

Object ChildFieldValue = ChildRecord.get('FirstName);

string s;

 

s = String.valueOf(ChildFieldValue1);

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.