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 Lead Developer
    Sorry, I assumed you would have some sort of list of potential field names in advance; if the field names are potentially unlimited or arbitrary, then my prior suggestion doesn't work. (The assumption I had been making was that you had, let's say, 4 different CDT types and they all had a specific "user IDs" field and these aren't likely to change much in the future.)
Reply
  • 0
    Certified Lead Developer
    Sorry, I assumed you would have some sort of list of potential field names in advance; if the field names are potentially unlimited or arbitrary, then my prior suggestion doesn't work. (The assumption I had been making was that you had, let's say, 4 different CDT types and they all had a specific "user IDs" field and these aren't likely to change much in the future.)
Children
No Data