How Do I Create a Comma Separated List of id Values on Server Side?

On the client side, I can say:

{{lookups.data.lookups.values(`id`)}}

and I get back:

1,2,3,4,5

However that

.values(`id\`)

syntax doesn’t seem to work on the server side… is there an equivalent syntax, or do I have to use a repeat loop?

Where is the data in your server action coming from?

A Database query of contacts.

Then you need to join them:

{{query1.join(",", "contact_name")}}

where contact_name is the name of the database column you want to join.

1 Like

Perfect, thank you Teodor! :slight_smile: