Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
7 subscribers
Views
1225 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
In a process I use to do this: doForEach("GCMS_ValidateNoAnswerCompletion&q
Naomi Person
over 10 years ago
In a process I use to do this: doForEach("GCMS_ValidateNoAnswerCompletion", ri!bYesNoAnswers, ri!sExplanations, ri!sLabels)
to iterate through a list, always 6 items, to check and see if an answer was no and the label not populated. We are in the process of upgrading and the doforeach will not be available.
I have tried multiple ways still no luck... Here are some of them...
repeat(cons!GCMSM_RULE_REPEAT,rule!GCMS_ValidateNoAnswerCompletion(ri!bYesNoAnswers, ri!sExplanations, ri!sLabels))
=apply(rule!GCMS_ValidateNoAnswerCompletion,repeat(cons!GCMSM_RULE_REPEAT,rule!GCMS_ValidateNoAnswerCompletion()))
=apply(rule!GCMS_ValidateNoAnswerCompletion, ri!bYesNoAnswers, ri!sExplanations, ri!sLabels)...
OriginalPostID-87224
OriginalPostID-87224
Discussion posts and replies are publicly visible
Parents
0
Michael Tan
Appian Employee
over 10 years ago
Naomi, with the apply function the second parameter is the only list which will be iterated through (the ones after are considered "context"). I believe merging your lists together with the merge function will fix your issue. Can you try the following?
apply(rule!GCMS_ValidateNoAnswerCompletion, merge(ri!bYesNoAnswers, ri!sExplanations, ri!sLabels))
More details on the looping functions here:
forum.appian.com/.../Looping_Functions
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Michael Tan
Appian Employee
over 10 years ago
Naomi, with the apply function the second parameter is the only list which will be iterated through (the ones after are considered "context"). I believe merging your lists together with the merge function will fix your issue. Can you try the following?
apply(rule!GCMS_ValidateNoAnswerCompletion, merge(ri!bYesNoAnswers, ri!sExplanations, ri!sLabels))
More details on the looping functions here:
forum.appian.com/.../Looping_Functions
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data