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
Highlighted
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.
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Kudoed Authors
Users online (7,149)