Hello,
I am having trouble grabbing the data from a nested gallery and saving it to a collection.
I have a vertical gallery (Gallery1) and nested inside Gallery1 is a horizontal gallery (Gallery2). The data source for Gallery1 is a Sharepoint list and the datasource for Gallery2 is the attachments list for each item in Gallery1. Each item in Gallery1 can have any number of attachments.
Gallery2 displays the image and it's display name. I want to be able to save the all the images and display names for each attachments list for each item displayed in Gallery1.
I have a button when selected is supposed to collect the data and save it to a collection. The following is the code.
Clear(imageCollection);
Collect(imageCollection,
ForAll(Gallery1.AllItems,
{
DataStream: Image.Image,
Name: fileName.Text
}
)
);
Which gives me the following Collection:

I have tried a number of different formulas with no success. Please steer me in the right direction