What is the best way to parse out a value from a user object? | Adobe Higher Education
Skip to main content
Level 2
March 8, 2024
Respondido

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

  • March 8, 2024
  • 1 resposta
  • 1108 Visualizações

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?

Este tópico foi fechado para respostas.
Melhor resposta por cverges

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

1 Resposta

cvergesResposta
Level 5
March 8, 2024

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

Level 2
March 8, 2024

Great suggestion!