
Hi All,
I have developed an App, which generate PDF file (using PDF function) and save it in SharePoint folder. What I am trying to achieve is PDF file to be saved in folders according to the value of (DataCardValue20) which is combo box. Combo box has city values and folder name in Sharepoint is based on City name as well.
I have flow as well that triggers when I click on Submit button in the App and that save the PDF file in SharePoint folder. Please see screenshot below for more information.
Office365Outlook.SendEmailV2(
"Plant@k.com",
"PROTECTION submitted by " & User().FullName,
"Hi Team, <br> <br>
Please find the attached file to see full information",
{
Attachments:Table({Name:"PROTECTION.pdf", ContentBytes:PDF(scrPROTECTION)}),
Cc: Concatenate(recipientEmail, ";", User().Email)
}
);
Set(currentDateTime, Text(Now(), "[$-en-US]dd-mm-yyyy_hhmmss"));
Protection.Run({file: {name: Concatenate("PROTECTION_", currentDateTime, ".pdf"), contentBytes: PDF(scrPROTECTION)}});
SubmitForm(frmPROTECTION);
ResetForm(frmPROTECTION);