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
4 replies
Subscribers
7 subscribers
Views
1433 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I've been attempting to convert any calls that had used the doforeach() func
dylanf
over 11 years ago
I've been attempting to convert any calls that had used the doforeach() function to use the apply() function instead, but in this case, I'm not getting the desired behavior:
Original using doforeach():
rule!NotesReplacement(joinarray(doforeach("CreateNotesString",pv!processNotes_cdt.ProcessGUID,pv!processNotes_cdt.KeyPersonAuthor,pv!processNotes_cdt.Note,pv!processNotes_cdt.Timestamp),"%3B"))
Converted using apply():
rule!NotesReplacement(joinarray(apply(rule!CreateNotesString,pv!processNotes_cdt.ProcessGUID,pv!processNotes_cdt.KeyPersonAuthor,pv!processNotes_cdt.Note,pv!processNotes_cdt.Timestamp),"%3B"))
Now, loooking at the documentation, it mentioned that when using the apply() function that uses a rule that takes multiple arguments, the merge() function should also be used, but I'm unclear, given the example in the documentation, how I would apply it here.
As always, thanks in advance for any assistance....
OriginalPostID-58784
OriginalPostID-58784
Discussion posts and replies are publicly visible
Parents
0
dylanf
over 11 years ago
Thanks, Owen. I'll try that.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
dylanf
over 11 years ago
Thanks, Owen. I'll try that.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data