Hi @Abdul5 ,
Could you tell me:
- Do you want to put all the data in your list into the collection?
- Do you want to use the gallery control to display the attached images in the collection?
If my assumptions are correct, the point is that the collection cannot directly access the attachments in the list. You could refer to the following steps.
- Create a collection "Test". The data in it is all the attachments in the list.
- Create a collection "Test2". Firstly, it collects all the data in the list except attachments. Secondly, merge it with the data in Test collection.
I've made a test for your reference:
1\ This is my list “LIST4”

2\ Add a button control and set its onselect property to:
ClearCollect(
TheVar,
1
);
ClearCollect(
Test,
{AAA: ""}
);
Clear(Test);
ForAll(
LIST4,
Patch(
Test,
Defaults(Test),
{
AAA: First(
Last(
FirstN(
LIST4,
First(TheVar).Value
)
).Attachments.Value
).Value
}
);
Patch(
TheVar,
First(TheVar),
{Value: First(TheVar).Value + 1}
)
)
3\ Add a button control and set its onselect property to:
ClearCollect(
TheVar2,
1
);
ClearCollect(
Test2,
LIST4,
{Picture: ""}
);
ForAll(
Test2.Title,
Patch(
Test2,
ThisRecord,
{
Picture: Last(
FirstN(
Test,
First(TheVar2).Value
)
).AAA
}
);
Patch(
TheVar2,
First(TheVar2),
{Value: First(TheVar2).Value + 1}
)
)
4\ Insert a label control into the gallery and set its Text property to:
ThisItem.Picture
5\ The result is as follows:

Best Regards,
Wearsky