How to change Ljava.lang.Object to String value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-01-2023 08:53 AM
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();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-01-2023 09:41 AM
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