How would I limit the fields that appear in the new record email? Below is my code:
'********** Send email with new data ************
Dim email = "az_issue@anywhere.com"
Dim from = "autoemail@anywhere.com"
Dim msg = New StringBuilder("")
Dim subject = "New Record Notification"
For Each field In values.GetEnumerator()
If Not CType(CommonFunctions.IsBinaryType(pageObject.pSet.getFieldType(field.Key)), Boolean) Then
msg.Append(field.Key.ToString() & " : " & field.Value.ToString() & Environment.NewLine)
End If
Next
Dim ret = MVCFunctions.runner_mail(New XVar("to", email, "subject", subject, "body", msg.ToString(), "from", from))
If Not CType(ret("mailed"), Boolean) Then
MVCFunctions.EchoToOutput(ret("message"))
End If
I searched the forum and general help but, did not find the answer.
Thank you in advance,