Copy list item properties when attachment is sent to a document library

Bhavana 21 Reputation points

Hi! I was able to build a flow that sends attachments from new list items to the document library. Is it possible to also add into the flow to send the properties of the list item? Like the ID Number?

A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,866 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Allen Xu_MSFT 13,781 Reputation points

    Hi @Bhavana ,

    I achieved your requirement by the following steps.

    • I built a Power Automate flow that sends attachments from new list items to the document library based on the answer in this post: Exactly the same as his.
    • I created a test single line of text column named "test" in my test list testzz and then created a test column named "test"(as well as single line of text) in my test document library testxx.
    • I added an action "Get item" between the trigger and the action Get attachments. Chose the “ID” dynamic content of the trigger in the “Id” field.
    • I added an action "Update file properties" after the action Create file. Chose the "itemId" dynamic content of "Create file" in the "Id" field. Chose the "test" dynamic content of "Get item" in the "test" field.

    When I create an item with attachments in the list as below.
    A new document with the property test will be created in the document library.

    Overview of my flow is shown as below. You can refer to mine and modify it based on your own needs.

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.