# SelectGenerateAndSave

## Overview

The SelectGenerateAndSave operation is a business process encapsulation method that performs autoselection and document assembly.
Note: This operation behaves the same as SelectAndGenerate with the additional function that the results are saved in the database.

This operation is used to generate documents based on parameters submitted in the request. The request takes a Transaction and Organization object, along with either a PackageID or LOBPhase and document post-processing instructions and returns a DocSet object and an array containing documents (as DocumentSet objects) along with the RequestID as the payload.

Operation | SelectGenerateAndSave
--- | ---
Style | document
Operation Type | Request-response. The endpoint receives a message, and sends a correlated message.
SOAP Action | http://schemas.bankerssystems.com/2004/ExpereAPI/ExpereIEServices/IExpereAPI/SelectGenerateAndSave
Input | SelectGenerateAndSaveRequest
Output | SelectGenerateAndSaveResponse

Related reference
SelectGenerateAndSaveRequest
SelectGenerateAndSaveResponse