Long story short I had a numerous attempts of creating Canvas app nested in Power BI report.
It mostly works fine, except of PowerBIIntegration.Refresh();
I already know that to make PowerBIIntegration.Refresh(); to work the app has to be created inside of Power BI service
as a visual.
The think is, its only seems to work when a default environment is selected. As soon as I choose another environment
the app stops to recognise the PowerBIIntegration.Refresh(); as a valid formula
Is this is the thing? Does the app must be saved in a default environment for PowerBIIntegration.Refresh(); to work?