LogDocDetail function

The LogDocDetail function writes an activity detail entry for the current document to the log file for an integration.

Syntax
LogDocDetail [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
The LogDocDetail function will not write information to the log file if the log level for the integration is set to Summary.

All parameters for this function are optional.

Example
The following example is the Before Document Commit script for an integration. It examines the Contact field and logs a message if no contact is supplied.

If IsNull(SourceFields(“Contact”)) Then
	LogDocDetail “No contact supplied.”
End If


Documentation Feedback