RecordWithReferenceRequest Class

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

Namespace 

RevSalesTrxn

Example 

1RevSalesTrxn.RecordWithReferenceRequest quoteLineItemRecords = new RevSalesTrxn.RecordWithReferenceRequest('refQuoteItem',quoteLineItemRecord);

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, RevSalesTrxn.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: RevSalesTrxn.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 has these properties.

  • record

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

  • 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.

record 

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

Signature 

public RevSalesTrxn.RecordResource record {get; set;}

Property Value 

Type: RevSalesTrxn.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