Expand my Community achievements bar.

Don’t miss the Workfront AMA: System Smarts & Strategic Starts! Ask your questions about keeping Workfront running smoothly, planning enhancements, reporting, or adoption, and get practical insights from Adobe experts.
SOLVED

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

Avatar

Level 3

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 7

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 7

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

Avatar

Level 3

Great suggestion!