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

HTTP Request - how to pass File ID

Hello,

 

How do I pass the File ID using the HTTP Request/Post? 

 

Objective: I am learning how to use HTTP Request and HTTP Post to pass the File ID between two Flows because I want the results of an approval flow to trigger another flow for the same file.

 

Issue: The ID field I created is not available in the Get File Properties connector. 

 

 

What I did:
I am generated some basic JSON for two values (File ID and File Name) and set both as 'string'. These show up when I try the Create File connector under File Name but not the Id field under Get File Properties. Is my variable type/JSON incorrect?
HTTP Request file ID unavailable.png

 

"$schema": "http://json-schema.org/draft-04/schema#",
"title": "File",
"description": "A file",
"type": "object",
"properties": {
"id": {
"description": "The unique identifier for a file",
"type": "string"
},
"name": {
"description": "File name",
"type": "string"
}
},
"required": [
"id",
"name"
]
}

 

Thank you!

Silvana

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: HTTP Request - how to pass File ID

Hi @silvana,

 

I assume that you could use the action Send HTTP request to SharePoint in the flow to get the exact file Id corresponding to the specific file name.

 

Please take the following docs for a reference and try it on your side:

https://docs.microsoft.com/en-us/connectors/sharepointonline/

https://www.chakkaradeep.com/2018/05/16/working-with-the-sharepoint-send-http-request-flow-action/

 

 

Best regards,

Mabel Mao

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: HTTP Request - how to pass File ID

Hi Mabel,

 

Thank you, that linked helped a bit. I changed the File ID field to Integer and then I was able to use it in Get File Properties's Id filed.

 

However, I am still having trouble getting this to work. I have be searching for a simple working example with screenshots of what I am looking for.

 

Can you/someone help show me a case where Flow A passes a the File ID to Flow B using HTTP post/request?

- Flow A:  at the end, have HTTP post that includes the File ID

- Flow B: begins with an HTTP request which grabs the file ID

 

Thank you!

Silvana

Highlighted
Helper V
Helper V

Re: HTTP Request - how to pass File ID

Did you find an example as requested?  I'd like to see it.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (7,491)