RecordResource Class

Contains constructors and properties to create a record object from the field values of a quote.

Namespace 

PlaceQuote

Example 

1PlaceQuote.RecordResource quoteLineRelationship1 = new PlaceQuote.RecordResource(QuoteLineRelationship.getSobjectType(),'POST');

See PlaceQuoteRLMApexProcessor to refer to an example implementation.

RecordResource Constructors 

Learn more about the available constructors with the RecordResource class.

The RecordResource class includes these constructors.

  • RecordResource(type, method, id)

    Creates an instance of the RecordResource class to assign values to the fields of a quote item by using the sObject type, API method, and quote ID properties.

  • RecordResource(type, method)

    Creates an instance of the RecordResource class to assign the values to the fields of a quote item by using the sObject type and API method properties.

RecordResource(type, method, id) 

Creates an instance of the RecordResource class to assign values to the fields of a quote item by using the sObject type, API method, and quote ID properties.

Signature 

public RecordResource(Schema.SObjectType type, String method, Id id)

Parameters 

type

Type: Schema.SObjectType

Object that’s returned from the field describe result using the getReferenceTo() method or from the sObject describe result using the getSObjectType() method.

method

Type: String

Method for the API request, such as POST or PATCH.

id

Type: Id

ID of the quote.

RecordResource(type, method) 

Creates an instance of the RecordResource class to assign the values to the fields of a quote item by using the sObject type and API method properties.

Signature 

public RecordResource(Schema.SObjectType type, String method)

Parameters 

type

Type: Schema.SObjectType

Object that’s returned from the field describe result using the getReferenceTo() method or from the sObject describe result using the getSObjectType() method.

method

Type: String

Method for the API request, such as POST or PATCH.

RecordResource Properties 

Learn more about the available properties with the RecordResource class.

The RecordResource class includes these properties.

  • fieldValues

    Set the fieldValues property to assign values to the fields to update the quote record.

  • id

    Set the id property to assign the ID of the quote record.

  • method

    Set the method property to specify the API request method, such as POST or PATCH.

  • type

    Set the type property to assign the object type that’s returned from the field describe result by using the getReferenceTo() method or from the sObject describe result by using the getSObjectType() method.

fieldValues 

Set the fieldValues property to assign values to the fields to update the quote record.

Signature 

public Map<String,ANY> fieldValues {get; set;}

Property Value 

Type: List <Map<String,ANY>>

id 

Set the id property to assign the ID of the quote record.

Signature 

public String id {get; set;}

Property Value 

Type: String

method 

Set the method property to specify the API request method, such as POST or PATCH.

Signature 

public String method {get; set;}

Property Value 

Type: String

type 

Set the type property to assign the object type that’s returned from the field describe result by using the getReferenceTo() method or from the sObject describe result by using the getSObjectType() method.

Signature 

public Schema.SObjectType type {get; set;}

Property Value 

Type: Schema.SObjectType