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

Question

Question

Starting rule condition for multiple values in a multi-valued field.

asked on January 11, 2024

I have a field, "Acct Nbr" which is a multi-valued field. 

I want a workflow to start based on if the account number field has more than 1 value. 

This is what I am thinking, but am unsure if it will work:

Entry : Field (Acct Nbr) contains "\n"

 

Will this work to detect a new line/multiple fields? 

Thank you.

0 0

Replies

replied on March 7, 2024

 I work in Cloud, so I'm not sure what applies to your situation, but the Starting Conditions there are pretty strict "Entry Created / Moved / Restored, etc." or by Schedule.

  I'm thinking you want an "Entry Created" Starting Condition > Start `yourWorkflow`.

Within `yourWorkflow`, you could then evaluate using:
1) Find Entry (using the Entry ID for your starting condition - make sure your Retrieve the Field ID as well)
2) Assign Token Values ( Create a Token, for Value input Find Entry.Field. Click on that and use Apply Function > Value Count)
3) Use a Conditional Decision to evaluate IF the Value Count Token is greater than 1. IF SO, run the rest of the workflow, ELSE End Workflow.

You could run this once on a schedule if you already have existing files.
Just make sure you have the Entry: Parent ID or something defined so that it runs within a certain directory and does what it needs to do.
 

0 0
replied on March 8, 2024

No. Multiple values are not the same as having a paragraph of text with multiple lines, so looking for a newline character will not work.

As Christopher says above, starting rules don't have the ability to count values in a multi-value field.

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

Sign in to reply to this post.