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

Community site session details

Session Id : CNnDJzoaF+seWwjw66zP/s
Power Automate - Building Flows
Answered

Want a flow to grab attachments from one list and populate another list if columns match

Like (0) ShareShare
ReportReport
Posted on 5 Oct 2023 21:11:27 by 4

I am working on a requisition list of orders and a second list for delivery list.  I want the delivery list to pull from multiple items in the requisition list and just pull the attachments over to the delivery list.  I have a column in the delivery list that says which requisition items are included in that delivery item.  So it may include one to 5 different requisition items and I want it to only grab the attachments of each of those requisition list items.

 

I've made a few flows, but pretty new still and I can't get this one to continually work and get errors.

derekkruzicki_0-1696540159534.pngderekkruzicki_1-1696540189106.png

derekkruzicki_2-1696540210235.png

 

  • v-mengmli-msft Profile Picture
    on 10 Oct 2023 at 06:03:34
    Re: Want a flow to grab attachments from one list and populate another list if columns match

    Hi @derekkruzicki ,

     

    Please try to delete the 'Current item' in Apply to each 2 and update the following expression:

    items('Apply_to_each_6')?['LookUpColumnName']

    vmengmlimsft_0-1696917593152.png

     

     

  • derekkruzicki Profile Picture
    4 on 09 Oct 2023 at 12:38:32
    Re: Want a flow to grab attachments from one list and populate another list if columns match

    If found the dynamic content to add that.  After adding it, i run into issues in creating this flow when i put in "get attachment content, Flow want to add another loop and then this doesn't match your example and doesn't work.  See below:

    derekkruzicki_2-1696854985228.png

     

    Since I was struggling with the above, I thought I would just keep it similar and start with just running it at the point of just get the attachment.  

    derekkruzicki_1-1696854857682.png

     

    - I get a 400 error:

    derekkruzicki_0-1696854781052.png

     

    Do you have any other thoughts on how to get this going?

    Thanks!

     

     

  • v-mengmli-msft Profile Picture
    on 09 Oct 2023 at 10:11:35
    Re: Want a flow to grab attachments from one list and populate another list if columns match

    Hi @derekkruzicki ,

     

    Please use the 'Search dynamic content':

    vmengmlimsft_0-1696846165647.png

     

    Best regards,

    Rimmon Li

  • derekkruzicki Profile Picture
    4 on 06 Oct 2023 at 12:40:43
    Re: Want a flow to grab attachments from one list and populate another list if columns match

    Rimmon, Thanks for helping.  I'm pretty new to everything; I can't find that lookup column in the get attachments step on the first flow.  See below.  I am trying to recreate your example.  Is there a way to get that column option to show up in my Dynamic Content?  From your original question, My Req Number is a column in Delivery list that looks up the ID column on Requisition List and can have multiple Requisition List IDs in it like a one to many relationship.  

     

    derekkruzicki_0-1696595745225.png

     

  • Verified answer
    v-mengmli-msft Profile Picture
    on 06 Oct 2023 at 03:03:28
    Re: Want a flow to grab attachments from one list and populate another list if columns match

    Hi @derekkruzicki ,

     

    Is the 'Req Number' column a lookup column for the ID column? I recommend that you create two flows to increase the speed of the flow, and the first flow runs only once, getting attachments to tables that are not currently modified. The second flow is triggered when the SP's item is modified, and only the currently modified Item is updated.

    My test:

    "test0927" is equal to delivery list which has a look up column.

    "test08188" is equal to requisition list which has attachment.

    The first flow: Get items connects to delivery list which has a look up column.

    Get items 2 connects to requisition list.

    1)

    vmengmlimsft_2-1696560261729.png

     

    2)The value is about the Get items 2.

    "lokupID" is the look up column in "test0927".

    vmengmlimsft_1-1696560218734.png

     

    3)

    vmengmlimsft_3-1696560329723.png

     

    The second flow:

    1)

    vmengmlimsft_4-1696561033177.png

     

    2)

    vmengmlimsft_5-1696561089884.png

     

    Hope this helps you!

    -----------------------------------------------------------------------------------------------------------------------------------

    If my answer solves your problem, please accept it as a solution to help more people stuck on the same problem find it.

     

    Best regards,

    Rimmon Li

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 2 on 06 Oct 2023 at 03:01:08
    Re: Want a flow to grab attachments from one list and populate another list if columns match

    Hi @derekkruzicki 

     

    Could you pls confirm the columns in two lists that makes up the mapping? I mean column 'Req number' belongs to list "Packing list" or "Requisition".

     

    Thanks

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete