Hi Experts,
I'm developing a Power App with three screens: Home, New Request, and Browse Mail. Users start on the Home screen and click the "+" icon to navigate to the New Request screen. This screen contains a vertical gallery connected to a SharePoint list where users input required information. There's also an "Add Document" icon that takes users to the Browse Mail screen.
The Browse Mail screen displays the user's inbox via a vertical gallery connected to Outlook. I've implemented a checkbox control for email selection:
- OnCheck:
Collect(SelectedEmails, ThisItem) - OnUncheck:
Remove(SelectedEmails, ThisItem) - OnSelect:
Set(selectedEmailSubject, ThisItem.Subject)
A "Save" icon on the Browse Mail screen navigates users back to the New Request screen, passing the selected emails:
- OnSelect:
Navigate(New_Request,ScreenTransition.Fade,{SelectedEmails: SelectedEmails})
Currently, the SelectedEmails collection is passed to the New Request screen. I need to save the emails selected by the user (contained in the SelectedEmails collection) as files within a SharePoint document library called "Scheme_Approval_Flow". Could you please advise on how to achieve this?
Specifically, I need help with the code to add to the "Save" icon's OnSelect property on the New Request screen. I'm unsure how to iterate through the SelectedEmails collection and save each email as a separate file in the SharePoint library. Any guidance on this would be greatly appreciated.
Thanks in advance!

Report
All responses (
Answers (