I have a button in my app that is supposed to Navigate to a screen, email a PDF of the screen, then Navigate back. This works fine in make.powerapps but if I publish the app and try it in a browser or in a Teams window the Navigation does not work so the PDF fails. If I remove all the code except Navigate, then it does navigate to the screen after publishing.
The code in the OnSelect starts like this:
Navigate(AllData);
Office365Outlook.SharedMailboxSendEmailV2(etc ett etc);