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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Link to SharePoint Lis...
Power Automate
Unanswered

Link to SharePoint List item not working in Approval flow

(0) ShareShare
ReportReport
Posted on by

I am building an approval workflow for approving new items added to SharePoint list.  In the "Start an Approval" action, I want the email that gets sent to the approver to include a link to the item in the SharePoint list. 

 

There is a field in the action labeled "Item Link" along with "Item Link Description."  I have the "Item Link" populated with the SharePoint list item ID, and the "Item Link Description" field with some text and then a field from the SharePoint list.

 

Here's a screenshot:

Flow approval.JPG

 

However, when I run the flow, the "Item link" doesn't work.  It goes to this following URL:  "https://0.0.0.40/" instead of to the SharePoint list item.

 

Here's a screenshot of the approval request:

Approval.JPG

 

The text of the link is correct, but the URL (https://0.0.0.40/) isn't.  Any idea what I missing?

Categories:
I have the same question (0)
  • Verified answer
    v-monli-msft Profile Picture
    on at

    Hi @Anonymous,

     

    The item's link is defined incorrectly. Please fill the field with link like this:

     

    This is the link of one of my SharePoint item:

    https://XXX.sharepoint.com/sites/TeamSite/Lists/List_Test/DispForm.aspx?ID=4

     

    Then you should fill the item link field like this:

    Capture.PNG

     

    Regards,

    Mona

  • Community Power Platform Member Profile Picture
    on at

    That worked, thank you!

  • wasabruin Profile Picture
    13 on at

    The above solution does not seem to work for me. The link to a particular file for me looks something like this:

     

    https://mycompanysite.sharepoint.com/sites/MLRReview/Shared%20Documents/Forms/AllItems.aspx?FolderCTID=%2FShared%20Documents%2FFor%20Review%2FMLR%20Review%20Form%20%2D%20Test%2EpdfMLR%20Review%20Form%20%2D%20Test%2Epdf&id=%2Fsites%2FMLRReview%2FShared%20Documents%2FFor%20Review%2FMLR%20Review%20Form%20%2D%20Test%2Epdf&parent=%2Fsites%2FMLRReview%2FShared%20Documents%2FFor%20Review

     

    The above is a PDF file that I would like reviewed and approved. So, how can I translate the above link to something that looks like the solution.

     

    Thank you in advance.

  • m4ngo5 Profile Picture
    90 on at

    Wasabruin,

     

    Try the URL below, using flow to append ID to the end as described above.


    https://mycompanysite.sharepoint.com/sites/MLRReview/_layouts/15/DocIdRedir.aspx?ID=

     

    --Stuart

  • wasabruin Profile Picture
    13 on at

    Hi Stuart,


    I tried what you suggested and I received the following error message:

     

    Capture.JPG

     

    Any ideas?

     

    Thank you for your help!

  • wasabruin Profile Picture
    13 on at

    I was able to find and resolve the activation of the Document IDs service. It is under the Site Contents > Site Settings > Site Collection Administration.

     

    However, after fixing that, I received the following error:

     

    Capture1.JPG

  • m4ngo5 Profile Picture
    90 on at

    wasabruin,

     

    Can you screenshot the part of your flow with the URL and the ID? It would be helpful to see.

     

    The ID variable should not be outputting a URL string like that, but I have a theory.  When you activate Document ID, SharePoint schedules this task.  If the process is not yet complete, it might be outputting that string instead.

     

    See here for more information on Document ID activation: https://support.office.com/en-us/article/Activate-and-configure-Document-IDs-in-a-site-collection-66345c77-f079-4104-ac7a-e25826849306

  • wasabruin Profile Picture
    13 on at

    Hello,

     

    Thank you for your assistance. Here is some more information related to the issue:

     

    1. When I use the following Flow setup:
      1. Capture.JPG
      2. I get the following error message:
        1. Capture2.JPG
    2. The FileID that Flow seems to be reporting is:
      1. %252fShared%2bDocuments%252fFor%2bReview%252fMLR%2bReview%2bForm-RevA.pdf
    3. The actual File ID when I look at the "Details" for the file is: AMMLR-785860148-20

     

    Any help with this frustrating problem would be appreciated! 


    Thanks!

     

     

  • m4ngo5 Profile Picture
    90 on at

    Hi wasabruin,

     

    Thanks for the screenshots.  Instead of using "File identifier", you want to use "Document ID Value". 

     

    Better yet, you could erase everything that is in the "Item link" box and just use "Document ID", because that is a link to the document. (It will create the redirect string for you and put the Document ID Value in there too!)

     

    -Stuart

     

     

  • wasabruin Profile Picture
    13 on at

    Hi Stuart,

     

    Thanks for the quick reply. Unfortunately, perhaps I'm doing something wrong, but I do not see a choice to use "Document ID Value" - these are the choices I get as I'm using Office 365 Sharpoint:

     

    Capture3.JPG

    So, I've been choosing "File identifier", but that doesn't work.

     

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard