I would like to create files under a folder in sharepoint library if that specific folder exists. Else I will create a folder and create files. I would like to do this using MS FLOW. ANy help or ideas on this are highly appreciated.
I tried the following method
- Created a FLOW on an item created event.
- created a rest api GET request for the document library with the folder name as a variable
- then create a decision tree after this which will check if the value returned from rest is empty or not.
The problem is its continuously retrying in the rest api step. Could someone tell me how to do this more efficiently.