Forum Discussion
Power BI UDF Button Action Keeps Old Workspace Reference After Deployment
I'm working with Power BI and using a button in a report to trigger a User Defined Function (UDF). When I configure the button's action, I select the workspace where the UDF is located. This works fine in the development environment.
However, when I deploy the report to another workspace (e.g., Test or Prod), the button still references the original workspace and doesn't update automatically to the new one. This causes the UDF not to trigger correctly in the target environment.
I'm using PBIP format in Azure DevOps and Power BI Deployment pipelines for deployment. Is there a recommended way to dynamically update the workspace reference for the UDF action during deployment? Or is there a workaround to avoid manually reconfiguring the button each time?
HI veckebombers
Have you tried referencing this PBIP to a new workspace while using deployment pipelines to deploy content to new workspace?
Basically a deployment rule to refrence another workspace.
6 Replies
- Pragati11Super User
HI veckebombers
Have you tried referencing this PBIP to a new workspace while using deployment pipelines to deploy content to new workspace?
Basically a deployment rule to refrence another workspace.
- v-prasareCommunity Support
Hi veckebombers ,
We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.
Pragati11 ,Thanks for your prompt responseThank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are
MS Fabric community support - v-prasareCommunity Support
Hi @veckebombers ,
We would like to confirm if our super user answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.
Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are
MS Fabric community support - PietroVerdeNew Member
Agree 100% - this is not a solution.
But it looks somewhat similar to what is going on with "PowerApp", "PowerAutomate" visuals. You basically need to manually switch/recreate them after each deployment...
In practice I've created multiple buttons one over another ( 1 per env ) and was hiding/unhiding them, depending on the the environment report was in (saved me a lot of clicks).
Although I can understand that DP can't do anything about PowerAPPs/PowerAutomate switching between environment (apps and flows are not clearly structured DEV/QLY/PROD), I can't understand that it's the same here where we have clearly in report.json (in pbir probably as were) reference to DEV workspace + Item (UDataF). DP could pick it up and switch it in the report. Probably not that easy... but still possible (c'mon Microsoft).