Recently two of my date fields have stopped showing in the email that is sent when a form is successfully submitted, I have link in the email that opens to an approval form, the dates in here show and are correct its just missing from the email that is sent to the line manager.
Office365Outlook.SendEmailV2(DataCardValue12.Text, "Annual Leave Submitted by " & DataCardValue16.Text, "<font face = Calibri size = 7><font color=black> Request Details </Font></Font> <br>
<br><b> Full Name: </b>" & DataCardValue16.Text &
"<br><b>Job Title: </b> " & DataCardValue17.Text &
"<br><b>Department: </b> " & DataCardValue18.Text &
"<br><b>Reason: </b>" & Form2.LastSubmit.Reason.Value &
"<br><b>Country Of Destination: </b>" & Form2.LastSubmit.CountryOfDestination &
"<br><b>Start Date: </b>" & Text(StartDate.SelectedDate,"[$-en-US]dd-mmm-yyyy") &
"<br><b>End Date: </b>" & Text(EndDate.SelectedDate,"[$-en-US]dd-mmm-yyyy") &
"<br><b>Days Absent: </b>" & Form2.LastSubmit.'Days Absent' &
"<br><b>Please review Annual Leave Request</b>" & "<a href='https://apps.powerapps.com/play/xxxxxxxxxxxxxxx&AbsenceRequest=" & Form2.LastSubmit.ID & "'> HERE </a> " & "<br>" & "<br>" & "__________________________________");{ IsHtml:true, Importance: "Normal",From:"SharePoint_NoReply@xxxxxxx.onmicrosoft.com"}; UpdateContext({vEmailSend:false});Notify("Data saved successfully and Email Sent to Line Manager", NotificationType.Success)
this is sent OnSuccess
here is the two fields that are now returning blank, Nothing has changed it just stopped working a few days ago.
"<br><b>Start Date: </b>" & Text(StartDate.SelectedDate,"[$-en-US]dd-mmm-yyyy") &
"<br><b>End Date: </b>" & Text(EndDate.SelectedDate,"[$-en-US]dd-mmm-yyyy") &
I have tried to change the fields to just
EndDate.SelectedDate
this still returns blank
I have also done a test when where i have just added a button to send an email to me with the dates, and this comes though as i would expect.