web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / A flow to merge ShareP...
Power Automate
Unanswered

A flow to merge SharePoint items containing images as attachment, thumbnail, and picture/hyperlink

(0) ShareShare
ReportReport
Posted on by 32

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.

LisaBowen_0-1716633242050.png

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

LisaBowen_6-1716635376578.png

LisaBowen_8-1716635516220.png

1. Get item - for selected item (trigger)

LisaBowen_10-1716636462985.pngLisaBowen_11-1716636496230.png

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

LisaBowen_12-1716636529766.pngLisaBowen_13-1716636549378.png

LisaBowen_14-1716636596055.png

LisaBowen_16-1716636640942.png

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

LisaBowen_17-1716636693813.png

LisaBowen_18-1716636721383.png

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

LisaBowen_24-1716637281714.png

LisaBowen_5-1716635342839.png

LisaBowen_23-1716637234478.png

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?

Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @LisaBowen  i am not sure if I understood what you are trying to do. Do you have multiple images stored in SharePoint list item attachment? Are you trying to fetch those images and create a new item from that?

  • LisaBowen Profile Picture
    32 on at

    Thanks @annajhaveri for getting back to me.

    I will try to clarify what I am trying to do as simply and concisely as possible. 

     

    I have multiple images I am trying to organise

     

    My list contains a separate item for each image

     

    Within its list item, the image is stored/referenced in the following columns:

    - Thumbnail (created by rest API using the file stored in Site Assets)

    - Attachment to the item

    - Picture in Hyperlink or Picture column (linking to the attachment)

    - Hyperlink in Hyperlink or Picture column (linking to the attachment)

     

    Want I want is to go through the list and manually select items/images to be grouped together in a new item, up to six images at a time.

     

    I want to create a flow to automate the process of getting the thumbnails, attachments and links from the selected items, then adding them all to a new item.

     

    I have tried many different things and I have succeeded in moving the thumbnail content only - I cannot get the attachments to work properly.

     

    I appreciate any advice you have.

     

    I can screenshot my failed attempts if that's helpful but each flow is so long and full of errors I think it might be simpler to start again from scratch using a new method.

     

    Thank you

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 997

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 642

Last 30 days Overall leaderboard