Hello:
I am looking to convert an array of number to a single string with comma as the separator. In 23.1, they have a function called a!joinarray which seems to be the function I want to use but I am on 22.4 CE. So, the question is there a similar function that will enable me to accomplish this?
Thank you.
Final desired result: 360392, 361150, 361177, 377913, 378165
Discussion posts and replies are publicly visible
There is no "a!joinArray". There is regular "joinArray()" which has been around for many years now (long before any of the "22.x" versions). What's wrong with just using this, regular, joinArray()?
e.g.: joinArray(local!myList, ", ")
I didn't know about the regular joinArray.
Thanks
it's the only one i know about
Also, didn't you just say your 22.4 CE instance "doesn't allow" you to use it? I'm confused what you were referring to, then.
Mea culpa/apologies - I shouldn't have put the 'a!' in my code - I was trying to use 'a!joinarray' (realize it doesn't exist) when I should have been using 'joinarray'. I was using a!update and a!flatten as part of that code and didn't may close attention to the fact that joinarray doesn't have the 'a!' prefix.
That's why never start typing with domain prefix unless you are using an interface component or smart service (they all have a! domain prefix). When you start with a! domain it will only suggest functions which use that domain, so better start typing the function name directly. Happy coding
Thanks, Sanchit! I am learning subtle things like that as I go through these tutorials / examples.