RecordWithReferenceRequest Class
Contains constructors and properties to associate a record object with a reference
identifier.
Namespace
Example
CommerceOrders.RecordWithReferenceRequest orderRecordNode = new CommerceOrders.RecordWithReferenceRequest('refOrder', orderRecord);
RecordWithReferenceRequest Constructors
Learn more about the available constructors with the RecordWithReferenceRequest class.
The RecordWithReferenceRequest class includes these constructors.
RecordWithReferenceRequest(referenceId, record)
Creates an instance of the RecordWithReferenceRequest class to associate a record object with a reference
identifier by using the referenceId and record object properties.
Signature
public RecordWithReferenceRequest(String referenceId, commerceorders.RecordResource record)
Parameters
- referenceId
- Type: String
-
Reference ID that maps to the subrequest response and can be used to reference the response in subsequent subrequests. You can reference the referenceId in either the body or URL of a subrequest. Use this syntax to include a reference: @{referenceId.FieldName}. See referenceId property of a composite subrequest.
- record
- Type: commerceorders.RecordResource
- Record object that’s defined using the RecordResource class.
RecordWithReferenceRequest Properties
Learn more about the available properties with the RecordWithReferenceRequest class.
The RecordWithReferenceRequest class includes these properties.