question

Bhavana-5217 avatar image
0 Votes"
Bhavana-5217 asked AllenXu-MSFT edited

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

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?

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AllenXu-MSFT avatar image
0 Votes"
AllenXu-MSFT answered AllenXu-MSFT edited

Hi @Bhavana-5217 ,

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.


image.png (36.6 KiB)
image.png (47.3 KiB)
image.png (10.2 KiB)
image.png (12.5 KiB)
image.png (48.2 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Bhavana-5217,

Is there any progress on this thread? Feel free to let me know if you still need any help.

0 Votes 0 ·

@Bhavana-5217,

Have you tried to design the flow above? Is there any update? I'm looking forward to your reply :-)

0 Votes 0 ·