RecordWithReferenceRequest Class

Contains constructors and properties to associate a record object with a reference identifier.

Namespace

CommerceOrders

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.

record

Set the record property to specify the record object that’s defined by using the RecordResource class.

Signature

public commerceorders.RecordResource record {get; set;}

Property Value

Type: commerceorders.RecordResource

referenceId

Set the referenceId property to specify the reference ID that maps to the subrequest response. This reference ID can be used to reference the response in subsequent subrequests.

Signature

public String referenceId {get; set;}

Property Value

Type: String