Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

HTTP Request - how to pass File ID



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": "",
"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": [


Thank you!


Community Support
Community Support

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:



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.

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!


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

Helpful resources

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.


Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (3,769)