How to link to a file in a document library in SharePoint online workflow?

Wangmo T 21 Reputation points
2021-11-24T00:55:09.213+00:00

Hi,

I have a workflow that starts with the trigger "When an item is created or modified." In the workflow, we have several approvals, and we want to attach a file from a document library for the approvers to review before they make their decisions, but we're having trouble linking to the file.

Is there an action item we can use to retrieve a specific file from the library? So far, the only options I see are getting files from a list, but not from a library. I'm on SharePoint online. Thank you

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

Accepted answer
  1. CaseyYang-MSFT 10,391 Reputation points
    2021-11-24T06:20:42.643+00:00

    Hi @Wangmo T ,

    Are you using Power Automate flow?

    Per my test, I would suggest you use the following flow with "get file metadata using path" and "get file content using path" options. Using this flow you could add attachments(files you want to attach from document library) to the Approval.

    153979-1.png

    154043-2.png

    154028-3.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


0 additional answers

Sort by: Most helpful