Hello everybody, a question about expressions and arrays here. I have

Certified Associate Developer
Hello everybody, a question about expressions and arrays here.

I have a function that takes an array of users.

I have multiple arrays of users that I want to call my function on after applying a merge (ie: I want to call my function on the first element of each array, then the second of each array, etc etc). However the apply function treats the result of a merge as individual arguments instead of a single array object when calling my expression. Wrapping the _ placeholder in the apply function with curly brackets causes a syntax error as does casting the result of the merge to a user list.

Has anyone dealt with this before and if so how did you resolve it?

OriginalPostID-138030

OriginalPostID-138030

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer
    Thanks for the thought Mr. Schmitt but that still leaves me with a different problem - I want to make my function work over a dynamic number of input values (ie: array of any size). In order to create a working wrapper function I will need to create different versions with 1, 2, 3, 4, etc etc inputs. Given my expected use case (20+ inputs) that won't really work for me :)
Reply
  • 0
    Certified Associate Developer
    Thanks for the thought Mr. Schmitt but that still leaves me with a different problem - I want to make my function work over a dynamic number of input values (ie: array of any size). In order to create a working wrapper function I will need to create different versions with 1, 2, 3, 4, etc etc inputs. Given my expected use case (20+ inputs) that won't really work for me :)
Children
No Data