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 found during execution of the ApplyPromotionDefaults method, then Restore Document is automatically triggered by the application (provided that the Promotion Automatch system preference is set to Y). Restore Document isn't triggered if the Promotion Automatch system preference is set to N, or if the Promotion Automatch system preference isn't 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. |