I have a document library in SharePoint Online. I want to automatically populate the documents in the library with some metadata upon file creation using Flow/Power Automate. The problem is that SharePoint automatically opens the file in the browser. This means that the file is immediately locked by the user and the Flow cannot update file properties.
Is there a way to avoid automatically opening the newly created file such that the Flow can initialize the metadata? I envision the following behavior: After pressing New->Word Document, I just see a new line appearing in the Library and I can edit the properties. To open the file I would need to explicitly click on the name.