GraphRequest Class
Contains constructors and properties to set the graph ID and a list of records to be ingested. The list of records is specified in a key-value map format that contains the field values of an order.
Invoke the Place Quote Apex API by using these steps.
-
Set up a quote and quote line item. To associate the Record object with a reference identifier, create an instance of the
RecordWithReferenceRequestclass. -
To create a quote line relationship, create an instance of the
RecordResourceclass. -
Create the list of records to be ingested.
-
To contain all record objects, create an instance of the
GraphRequestclass.The
CatalogRatesPreferenceEnumenum is available when the Usage-Based Selling feature is enabled. -
Learn more about the available constructors with the
GraphRequestclass.
Learn more about the available constructors with the GraphRequest class.
The GraphRequest class includes these constructors.
-
GraphRequest(graphId, records)
Creates an instance of the
GraphRequestclass to assign the graph ID and a list of records to be ingested.
Creates an instance of the GraphRequest class to assign the graph ID and a list of records to be ingested.
public GraphRequest(String graphId, List<placequote.RecordWithReferenceRequest> records)
graphId
Type: String
ID of the graph.
records
Type: List<placequote.RecordWithReferenceRequest>
List of records to be ingested.
The following are properties for GraphRequest.
-
Set the
graphIdproperty to assign the ID value of the graph.
Set the graphId property to assign the ID value of the graph.
public String graphId {get; set;}
Type: String