Yes, I've been looking for this for a while as well. It seems crazy to me that when you do a Create File that it can't pass an ID to the next step in the flow. Better yet, let us specify the metadata when you upload the file in the first place.
My flow looks like this:
HTTP Get File Content --> Create File (Here I pass the BODY from the previous step and specify a File Name) ---> Get files (properties only) THIS IS WHERE I AM STUCK
When you upload the file, you can't specify any metadata other than the filename, BUT I can't seem to figure out a way to filter by the filename in the "Get Files (properties only)" step. And believe me I have searched all over for this.
IF a file has a title set, you can easily enter "Title eq 'TITLEHERE'" into the Filter Query field and it will return that one file (inlcuding the ID) and then you can use the update file properties task and be on your way.
But, this is where we are stuck because the upload process doesn't allow you to specify any other properties other than file name.
The Dynamic content returned from the "Create File" task is this:
DisplayName, ETag, FileLocator, Id (not the SPID), IsFolder, LastMOdified, MediaType, Name, Path, Size
So far I can't figure any way to filter by any of those returned values to get the SharePoint ID of the file I just uploaded.
You would think it would be as easy as Name eq 'FILENAME' but that returns an error saying that there is no column with the name "Name".
If anyone has figured this out, please let me know!!!