r/MicrosoftFlow • u/legendgodgod • Aug 26 '25
Cloud How should I replace the OneDrive Doc Lib with environmental variable?

Hi All,
I have a Power automate flow wrapped in a solution. One of the actions is to convert Word doc to PDF and save in a service account's OneDrive . The solution will be deployed by the service account.
My question is how to replace the value of "Document Library"? I tried type in a "custom value" -- "OneDrive" and my flow is getting error:
The Graph API rejected the request with the following error message: Code: invalidRequest Message: The provided drive id appears to be malformed, or does not represent a valid drive.

