The LogDocWarning function writes an activity detail entry for the current document to the log file for an integration and increases the warning count for the integration by one.
Syntax
LogDocWarning
[message, source, status_code,
field_name, field_value]
Parameters
message—An
optional string parameter corresponding to the Message item of the
document detail entry written to the log file.
source—An optional string parameter corresponding to the source item of the document detail entry written to the log file.
status_code—An optional integer parameter corresponding to the Status item of the document detail entry written to the log file.
field_name—An optional string parameter corresponding to the Field Name item of the document detail entry written to the log file.
field_value—An optional string parameter corresponding to the Field Value item of the document detail entry written to the log file.
Comments
All parameters for this
function are optional.
Example
The following example is
the Before Document Commit script for an integration. It examines
the Fax number field and logs a warning if no fax number is
available.
If IsNull(SourceFields(“Fax”)) Then LogDocWarning “No fax number.” End If