Expand my Community achievements bar.

Join us LIVE in San Francisco on November 14th for Experience Makers The Skill Exchange. Don't miss out on this free learning event!
SOLVED

What is the best way to parse out a value from a user object?

Avatar

Level 2

I have a custom field that is a typeahead from the user object.

 

In Fusion, that custom field is passed as:
'{"objCode":"USER","name":"Anushka XXXX","ID":"64ad05ec00xxxx52aed8fa3f4"}

Is there an easy way to parse out the name or ID out of this?  Can I do this with a map() function?

1 Accepted Solution

Avatar

Correct answer by
Level 6

Pass it into a JSON parser node, then pull out the ID value from that.

Screen Shot 2024-03-08 at 11.05.32 AM.png

Screen Shot 2024-03-08 at 11.05.37 AM.png

View solution in original post

2 Replies

Avatar

Correct answer by
Level 6

Pass it into a JSON parser node, then pull out the ID value from that.

Screen Shot 2024-03-08 at 11.05.32 AM.png

Screen Shot 2024-03-08 at 11.05.37 AM.png