Example - OCR for AnyDoc - Foundation 23.1 - Foundation 23.1 - AnyDoc - external

OCR for AnyDoc Programming Reference Guide

Platform
AnyDoc
Product
OCR for AnyDoc
Release
Foundation 23.1
License

If This.IsBlank Then

Set olapp = CreateObject("Outlook.Application")

Set oitem = olapp.CreateItem(0)

oitem.Subject = "OCR for AnyDoc"

oitem.To = "jsmith@hyland.com"

oitem.Body = "Phone field is empty"

oitem.Send

End If

Set oitem = Nothing

Set olapp = Nothing

  1. Access the phone zone created in theDelete Form Data if an Important Field is not Completed (page Delete Form Data if an Important Field is not Completed) example.
  2. Select Parameters Toolbox button | Rules Parameters, then click the zone to access the zone level Rules Parameters.
  3. Click the VBScript tab | Post Verification button to access the VBScript window.
  4. Enter the following code in the main VBscript window:

    If This.IsBlank Then

    Set olapp = CreateObject("Outlook.Application")

    Set oitem = olapp.CreateItem(0)

    oitem.Subject = "OCR for AnyDoc"

    oitem.To = "jsmith@hyland.com"

    oitem.Body = "Phone field is empty"

    oitem.Send

    End If

    Set oitem = Nothing

    Set olapp = Nothing

  5. Change the Subject as needed.
  6. Change the e-mail address, jsmith@hyland.com, to an existing e-mail address.
  7. Click the Syntax Check button to identify any syntax errors in the script. "Successfully Compiled!” appears at the bottom of the window.
  8. Click OK in both the VBScript Editor and Rules Parameters window.
  9. Run the template through Interactive Processing. The e-mail is sent to the e-mail address that was indicated.