Deep Clone (POST)

Copy related records of an object along with the main product record.

Resource

1/connect/pcm/deep-clone

Resource Example

1https://{yourInstance}.salesforce.com/services/data/v68.0/connect/pcm/deep-clone

Available Version: 63.0

HTTP Methods: POST

Request Body for POST

JSON Example

1{
2  "mainRecordId": "01tSG0000028kcSYAQ",
3  "mainObjectApiName": "Product2",
4  "mainRecordFieldValues": {
5    "Name": "New Cloud Storage"
6  }
7}

Properties

NameTypeDescriptionRequired or OptionalAvailable Version
mainObject​ApiNameStringAPI name of the object. The supported object is Product2.Required63.0
mainRecord​Field​ValuesMap<String, String>Mapping of the API name of the field to its value. The values passed through this map are set for the created record. You can pass the Name field only through this map.Optional63.0
mainRecord​IdStringID of the record.Required63.0

Response Body for POST: Deep Clone Response