Expand my Community achievements bar.

SOLVED

Grab the User ID only from a User field in a Fusion scenario

Avatar

Level 3

I have a custom field where people can select a Workfront User. What I want to do in a Fusion scenario is read that user record and then use the email address associated with that user in a follow-up step. However, when trying to read the user record, I get stuck. 

 

The field is formatted like this: {"objCode":"USER","name":"Joe Blow",ID":"5ba3fakeID2222a9620b7d6c1173a093"} ... so the Read a Record module returns an error for invalid ID. 

 

How can I use Switch or String or some other module to only use the ID portion of this string? 

1 Accepted Solution

Avatar

Correct answer by
Level 7

Try a Parse JSON module.  You'll need to create a data structure--this is one I created for parsing a custom typeahead user field.

KristenS_WF_0-1724772801461.png

 

 

View solution in original post

3 Replies

Avatar

Correct answer by
Level 7

Try a Parse JSON module.  You'll need to create a data structure--this is one I created for parsing a custom typeahead user field.

KristenS_WF_0-1724772801461.png

 

 

Avatar

Level 5

In addition, you don't even have to build the data structure. It will auto generate for you if you leave it blank. This is from a field that is the same as yours.

Lawson02_0-1724801467449.png