Hi folks, creating a flow to manage images in SharePoint is giving me a headache again - I hope someone can help me out.
I finally have a SharePoint list filled with items that were created by a flow for adding thousands of images from OneDrive Business to SharePoint.

The result of the flow is that each image has its own SharePoint item that contains the image in all 3the following columns/formats
1. as an attachment
2. in Thumbnail column
3. as Picture in Hyperlink or Picture column
4. as Hyperlink in Hyperlink or Picture column
I now want to organise these images and merge most of them into single items (where the images are from the same event, for example).
I added extra columns for each image type hoping I could simply copy and paste the Thumbnail, Picture, Hyperlink, and attachments data from one item into another before deleting the original item - how wrong I was!
I am now running into trouble as I attempt to automate the process.
My idea is that each item I want to merge is given a number in a new column I've named "Merge code", then the flow is as follows:
Trigger: when I select a SharePoint item


1. Get item - for selected item (trigger)


2. Get attachment and attachment content - for selected item (trigger)




3. Get items - for items with "Merge code" column matching that of the selected item


4. Get attachment and attachment content - for items with "Merge code" column matching that of the selected item



After this I am stuck figuring out whether to create a new item to add and attach the info to, or to update the original selected item instead. -either way I'm completely lost figuring out how to add the data from up to five separate items into separate columns in a single item.
A loop maybe?
Perhaps there is another way of doing this that you could suggest?
I am inexperienced so simple step by step instructions and screenshots of each step would be very helpful!
Any advice would be greatly appreciated.
Thank you
@annajhaveri you were so helpful with my previous flow, would you have any suggestions for me here?