cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Issue creating a share link to one drive

Hi,

 

   trying to do a simple thing: obtaining the link of a file to add it into the link to file option in an approval action

   I got the below error:  "The file id is not valid" .. and the file exists and it is valid 🙂

 

   Edit Mode:

image.png

 

   Execution Mode:

image.png

 

If I select the file directly ( without using variable ) it is working, but of course, this is not usefull for me 🙂

 

Do you know why this error is raised and how to solve ?

 

Thanks a lot !

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: Issue creating a share link to one drive

Finally I used "Find files in folder" action to locate the file, after that I put the weburl property on the link item property in the approval action,

 

Thanks!

View solution in original post

3 REPLIES 3
Community Support
Community Support

Re: Issue creating a share link to one drive

Hi @JosePrada,

 

What’s the previous action of Create share link? Is it action Create file? Could you share a full screenshot of your flow?

According to your description, I created a flow to create share link. I found that when the File box contains a dynamic content, it will return the error message “The file Id is not valid”.

However, if I get the file from a previous action Create file, then it will run successfully.

Flow screenshot likes below:

1.PNG

As a workaround, please try to add an action Create file first, then get the file from the previous action.

Besides, I am afraid the dynamic content in the file name likes what you are using has not been supported yet, if you need this feature, please submit a request on Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Frequent Visitor

Re: Issue creating a share link to one drive

Hi @v-yamao-msft,

 

  unfortunately files are already created, I only need to get the file link and put it into the approval.

 

Regards

Highlighted
Frequent Visitor

Re: Issue creating a share link to one drive

Finally I used "Find files in folder" action to locate the file, after that I put the weburl property on the link item property in the approval action,

 

Thanks!

View solution in original post

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (8,351)