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