I have a arcade expression that loops through a set of records and produces a comma separated list of parentrowids.
<SPAN class="keyword token">for</SPAN> <SPAN class="punctuation token">(</SPAN>var p <SPAN class="operator token">in</SPAN> parentrowids<SPAN class="punctuation token">)</SPAN> {
array <SPAN class="operator token">+</SPAN><SPAN class="operator token">=</SPAN> p<SPAN class="punctuation token">.</SPAN>parentrowid <SPAN class="operator token">+</SPAN> <SPAN class="string token">", "</SPAN> <SPAN class="punctuation token">;</SPAN>
}
}
var prid_array <SPAN class="operator token">=</SPAN> array<SPAN class="punctuation token">;</SPAN>
}<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>I have a where clause a few lines down that uses the IN operator to filter on another table. I get this error not matter how I try and produce the "array".

When I write the value to a table using this string:
var prid_array <SPAN class="operator token">=</SPAN> <SPAN class="string token">"('"</SPAN><SPAN class="operator token">+</SPAN> array <SPAN class="operator token">+</SPAN> <SPAN class="string token">"')"</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>I get this:

However the table is populated as
('{67D92A25-79C7-4225-9AD1-C140662DEFCF}', '{F269CECB-70D3-4288-8D11-102025D3D701}', '{99AB8E1B-2759-43CA-88DE-7A5A2FDECDC6}', '')
Is there a way to output a string to be used in a IN operator?
Xander Bakker