You are viewing limited content. For full access, please sign in.

Question

Question

Token Not Populating from Pattern Match

asked on March 23, 2018

I'm running into an issue where tokens I'm creating via pattern matching aren't getting created in the workflow. When I test out the pattern in the expression it works just fine, however after I run the workflow neither of the tokens is getting populated. The Assign Token Values is right after the Retrieve Values activity, so I'm not entirely sure what's going wrong.

 

 

20180323_BlankTokens_StatusUpdates.JPG
0 0

Answer

SELECTED ANSWER
replied on March 23, 2018

If you are matching on a multi-value token, you can first put all the values into one line using the 'Apply Index', separating each value with a delimiter such as a comma.   This often makes searching a multi-value much easier and in one step.

I don't know if the reg-exp below fills your requirements but this is the idea:

 

 

0 0

Replies

replied on March 23, 2018

I think the value you are retrieving is being treated like one line. Try 

Crew:\s+([A-Z a-z]+)

if that returns "Scheduled" the above is probably true.

0 0
replied on March 23, 2018

I just tried that, and same thing happened -- the test area shows Scheduled, however when I run the workflow the token isn't getting populated (I updated the Work Order Status token as well and neither of them were populated).

0 0
replied on March 23, 2018

Is the field you are retrieving a multi-value field? If so you would probably need to put your pattern match inside a for each value tool.

0 0
SELECTED ANSWER
replied on March 23, 2018

If you are matching on a multi-value token, you can first put all the values into one line using the 'Apply Index', separating each value with a delimiter such as a comma.   This often makes searching a multi-value much easier and in one step.

I don't know if the reg-exp below fills your requirements but this is the idea:

 

 

0 0
replied on March 26, 2018

The index worked! Thank you so much!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.