How to change Ljava.lang.Object to String value

Alon Grod
Tera Expert

Hi,

we are getting from a REST api  data into a custom table with multiple fields. after that we are using a transform map in order to move the data from the custom table to sys_user table. One of the fields from the custom source table is giving the value into the target table as [Ljava.lang.Object;@293cafe9. How can I extract the value from the object array and get it as a string. I tried to use, but it still not getting the value from the object array:

mobile_phone = source.u_mobile_phone.toString();

 

 

1 REPLY 1

Uday_Kumar
Giga Guru

HI @Alon Grod You can use stringify function to convert object to string. Please refer this it will work absolutely Fine. Stringify Document

If my solution helps you please mark my Solution Accepted and Helpful.

Thanks and regards

Uday Kumar Valapudasu