Restore Document Method

This method restores the document to its saved state, and contains the method arguments listed in the following table. If an error is encountered during execution of the ApplyPromotionDefaults method, then Restore Document is automatically triggered by the application (provided the Promotion Automatch system preference is set to Y). Restore Document is not triggered if the Promotion Automatch system preference is set to N, or if the Promotion Automatch system preference is not defined.

Argument Name Data Type Input or Output Comments

Document Id

String

Input

The Header Id of the quote or order.

Document Type

String

Input

Document Type must be either Quote or Order.