I've been attempting to convert any calls that had used the doforeach() func

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 Reply Children
No Data