cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
JosePrada
Level: Powered On

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
JosePrada
Level: Powered On

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 Team
Community Support Team

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.
JosePrada
Level: Powered On

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

JosePrada
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,454)