I have recently setup a Power Automate Flow that refreshes a PowerBI dataset used by a report, added a button in the PowerBI Desktop report and published to a Test Workspace
Everything works great
But when I deploy this report into the Production Workspace through the PowerBI Pipeline deployment the Workspace name does not change in the Flow
So when the flow is executed by pressing the button in the report in the Production Workspace it refreshes the dataset in the Test Workspace 😞
Does anyone know how this can be managed without having to amend the report to use a different flow for the Production dataset once published into the Production workspace ?
Is there a way to make the Workspace name dynamic and use the workspace the report is within ?

Thanks
Rebecca