In my MS flow, I am using 'Create share link' in 'Onedrive for business'.
But I find out that that link will expire after 1 hr of creation. I have tried using 'anonymous' or 'organization'
but both will expired in an hr.
How can I create a share link which lasted longer than an hr?
I don't find this to be the case when I use the OneDrive for Business Create share link by path action. The link doesn't expire in my case, because I don't have an expiration set in the SharePoint Admin Center for anyone links. Perhaps there is a global expiration policy set in your tenant?
Although in any case I thought any expiration should be in terms of days, not hours. So your case sounds very unusual. I'm unsure where you're located and exactly how SharePoint/OneDrive calculates the expiration date of a link, but I wonder if your timezone could have anything to do with that (i.e. if 1 day = only 1 hour for you before it's the next UTC day) - just a thought, I haven't tested that theory.
Does this help you...?
I have tested on my side 3 hours ago, create a share link of Onedrive file and email it. 3 hours later, the URL of the Onedrive still could access, the following screenshot is how I configure it:
Just like @SandyU said, there is no expire setting when you create the Share link in Flow, the default expiration is very long.
There is a post about the default expiration in OneDrive, hope it can help you:
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Three Super User rank tiers have been launched!
Features releasing from October 2020 through March 2021
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!