I have a form that when successfully executed does the following:
Office365.SendEmail(PurchasingEmail, "New Supply Order Request, Order#: "&SupplyRequestView_Form.LastSubmit.ID&" has been approved.", SupplyRequestApproved_HTML.HtmlText, {Importance:Normal, IsHtml:true, Cc:MFGLeadsEmail&","&MFGManagersEmail})
The ID returns correctly in the subject field of the email.
As seen above, the body is HTML. Here's an applicable snippet:
<tr>
<td width=49%>" & " Order Number " & "</td>
<td width=1%>:</td>
<td width=50%>" & SupplyRequestView_Form.LastSubmit.ID & "</td>
</tr>
The SupplyRequestView_Form.LastSubmit.ID works in the subject, but NOT in the HTML email. It and all other fields in the HTML when calling against the .LastSubmit method return blank.
What am I missing here? This is extremely frustrating. I have certain forms where the post-success .LastSubmit call works perfectly fine in HTML emails and others, such as in this example, where I get nothing but blanks. I can't find a causal relationship. Any help or insight would be extrememly appreciated!
Thanks,
Stephen