CancelIntegration function

The CancelIntegration function cancels the current integration and writes an entry to the log file.

Syntax
CancelIntegration [message, source, status_code]

Parameters
message—An optional string parameter corresponding to the Message item that is written to the log file for the integration.

source—An optional string parameter corresponding to the source item that is written to the log file for the integration.

status_code—An optional long integer parameter corresponding to the Status Code item that is written to the log file for the integration.

Comments
All parameters for this function are optional.

Example
The following example is the Before Integration script for an integration. It displays a dialog, asking the user to supply a password required to start the integration. If an incorrect password is supplied, the integration is canceled.

Dim Input
Input = InputBox(“Enter password”, “Password”)

If Input <> “Access” then
	MsgBox(“Incorrect password.”)
	CancelIntegration “Incorrect password supplied.”
End If


Documentation Feedback