The approve button timestamps the user and time (AdminApproval) and updates the Process column. inputReview.Text = ThisItem.'Created by'.Email and is in the gallery section. This displays the Hiring Admin email correctly.
Patch('Request to Post Vacancy',GalReview.Selected,Defaults('Request to Post Vacancy'),
{
AdminApproval:LabelApprove.Text,
Process:"AdminApproved"
}
);
If(
// check if there were any errors when the test score was submitted
!IsEmpty(Errors('Request to Post Vacancy')),
// if true, show any error message
Notify(
Concat(Errors('Request to Post Vacancy'), Column&": "&Message),
NotificationType.Error
),
Set(requestApprove,inputReview.Text);
Office365Outlook.SendEmailV2(
requestApprove,
"Request to Post Vacancy - APPROVED SCREEN",
"Hiring Admin Approved! :<br/><br/><a href=" & Char(34) & "https://sharepoint.com/sites/HR/SitePages/RequesttoPost.aspx" & Char(34) & " target=" & Char(34) & "_blank" & Char(34) & ">Request to Post Vacancy</a>
<br/><br/>View attached PDF with the details for this request.",
{Cc:"hr@company.org",
Attachments: Table(
{
Name: "RequestToPostVacancy.pdf",
ContentBytes: PDF(FormReview)
}
)
}
);
Navigate(NavigationMenu);
)