RecordWithReferenceRequest Class
Contains constructors and properties to associate a record object with a reference identifier.
-
RecordWithReferenceRequest Constructors
Learn more about the available constructors with the RecordWithReferenceRequest class.
-
RecordWithReferenceRequest Properties
Learn more about the available properties with the RecordWithReferenceRequest class.
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.
Creates an instance of the RecordWithReferenceRequest class to associate a record object with a reference identifier by using the referenceId and record object properties.
public RecordWithReferenceRequest(String referenceId, RevSalesTrxn.RecordResource record)
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.
Learn more about the available properties with the RecordWithReferenceRequest class.
The RecordWithReferenceRequest class has these properties.
-
Set the record property to specify the record object that’s defined by using the RecordResource class.
-
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.
Set the record property to specify the record object that’s defined by using the RecordResource class.
public RevSalesTrxn.RecordResource record {get; set;}
Type: RevSalesTrxn.RecordResource
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.
public String referenceId {get; set;}
Type: String