Deep Clone Sales Transaction
Clone a quote or an order, including full object graph with related objects, selected lines, or selected groups.
This action is available in API version 67.0 and later.
URI:/services/data/v68.0/actions/standard/deepCloneSalesTransaction
Formats: JSON, XML
HTTP Methods: POST
Authentication:Authorization: Bearer TOKEN
Where TOKEN is a placeholder for your OAuth access token.
| Input | Type | Description |
|---|---|---|
options | Apex-defined | Specifies options to clone a ramp segment within a sales transaction. You can clone only the last ramp segment. Valid values are recordTypeId—ID of the record type related to the record to clone. Optional; or lineScope—Specifies the scope for cloning a ramp segment. This property determines which line items must be cloned and added to the cloned segment. You can specify these options: AllLines—Specifies whether all line items in a ramped group must be cloned, or RampedLinesOnly—Specifies whether only the ramped line items must be cloned. A segment identifier is created for the newly cloned line items, ensuring date continuity between the existing and cloned segment. |
recordIds | List<String> | Required. ID of the record to be cloned. You can specify a single record ID only. |
salesTransactionId | String | Required. ID of the sales transaction related to the record IDs to clone. |
| Output | Type | Description |
|---|---|---|
newRecordId | String | ID of the cloned sales transaction. |
POST
Here’s a sample request for the Deep Clone Sales Transaction action.
Here’s a sample response for the Deep Clone Sales Transaction action.