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

Bhavana 21 Reputation points
2021-08-03T16:33:57.043+00:00

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?

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

1 answer

Sort by: Most helpful
  1. Allen Xu_MSFT 13,806 Reputation points
    2021-08-04T07:20:49.047+00:00

    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: https://powerusers.microsoft.com/t5/General-Power-Automate/Copy-SharePoint-Lists-attachments-to-a-SharePoint-Library/td-p/94085. 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.
      120421-image.png
    • 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.
      120431-image.png

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

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


    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.