+ 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.