Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

Sharing Link Expiration

Posted on by 71
I have some questions about using the Sharing Link.  The sharing link gave edit permissions to the intended users for a document but the expiration isn't working. 

I think that it counts the duration to the expiration date from the output of the When Item is Created or Modified.  Is this accurate?
If yes, I believe the output of that is in this format 2024-11-26T12:40:15Z

I’ve seen two different formulas for the Link Expiration (below).  Which is better to use?   
  • addDays(triggerOutputs()?[‘body/Created’],1,’yyyy-MM-dd’)
  • addDays(utcNow(),1,'MM-dd-yyyy')

Should I change the format of the date in the Link Expiration to 'yyyy-MM-ddTHH:mm:ssZ'?

Is there an easier way to test the link expiration than waiting the duration for the link to expire?  It’s very slow to wait a day.
 
I have attached the flow in PDF.
Presentation1.pdf
  • Suggested answer
    muggs4477 Profile Picture
    muggs4477 71 on at
    Sharing Link Expiration
    I have resolved my issue by using the formula below but I changed the date format to 'yyyy-MM-dd'. 
     
    addDays(utcNow(),1,'yyyy-MM-ddTHH:mm:ssZ')
     
    Still have to wait a day to test it though. 


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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard