We have created some custom Power BI reports that are embedded in Business Central Item List, Customer List and Vendor List pages. They work fine and display as expected, UNTIL the user changes the Company via MySettings. The Power BI reports embedded in the List pages noted above still all point back to the original company, NOT the newly selected company.
The Power BI reports are populated via Business Central 365 Web Services queries which include the Company Name in the ODataV4 url that is exposed.
How can we pass the new Company name back to Power BI so the url can be updated. Does this possibly have something to do with the alternate Url for the Company Name where it is exposed as a parameter via ?Company?