lookupRecords in attachment and view as attachment

Hello, I’m trying to get a list of images of related posts and view them as attachments in a cell

PartList.lookupRecords(Type=$id).Img

I get a list

[_grist_Attachments[[59]], _grist_Attachments[[]], _grist_Attachments[[60]], _grist_Attachments[[]], _grist_Attachments[[]], _grist_Attachments[[]]]

Is it possible to bring it to mind:

_grist_Attachments[[59,60]]

Is it possible to make it work?
Thank you.

This should flatten the list:

all_images = PartList.lookupRecords(Type=$id).Img
return [image for images in all_images for image in images]
1 Like

Brilliant, thanks a lot!