I have a power app and a power automate flow connected to each other. PowerApps is the trigger for the flow which I have tied to a button in the app. I am passing to the flow three texts fields, the flow is taking those text string making it into a HTML file, then converts to a PDF using OneDrive for business, I then create a share-link (in flow) and pass the link back to the App so the app can "Launch()" it. The flow works fine, it creates the PDF file on my onedrive, and it passes back the link, however it has issues launching the URL.
My problem is this, currently I have one button that tries to do everything, it runs the flow, assigns the share-link to a variable once it has been received back in power apps and then launches it. Here is my formula:
Set(
PDFFilePath,
'Flow'.Run(
DataCardValue15.Selected.DisplayName,
DataCardValue19.Text,
DataCardValue25.Text
)
);
Launch(PDFFilePath.pdffilepath)
Everything but the launch functions works, I have a label on screen to ensure a value gets assigned to the variable "PDFFilePath", and when I check the flow and the file everything has worked as its supposed to.
Now if I take the exact same launch command i used in the button formula above (in red) and run that by itself, the launch function works. So I am not sure if I am missing something about the launch function, or something else.