You are here:
Context Definition for Sample Request Conversion Processes
Use the predefined context definition, SampleRequestConversion, to automatically map and transfer data when converting a sample request into an order for sample fulfillment. The SampleRequestConversion context definition consists of a canonical data structure, mappings to data sources, and context tags to enable seamless data flow between the sample request and fulfillment lifecycle.
Required Editions
Available in: Lightning Experience Available in: Enterprise, Unlimited, and Developer Editions |
The SampleRequestConversion context definition includes these elements:
- A canonical structure of sample request and customer information defined by attributes that represent key data points. This definition uses a flat attribute list to map data directly from the Sample Request to the Order record.
- A mapping of the context structure to the Salesforce objects from which the sample data must be fetched. The attributes in the structure are mapped to the Sample Request and related account objects.
- Tags that help applications, such as the conversion invocation method, consume and update the required sample data. Context tags in this definition represent specific pieces of information, such as shipping details and linked order records.
Context Tags in Sample Request Conversion Context Definition
Use the context tags from this context definition to supply appropriate data during the conversion process. Context tags act as the bridge between the input sample request and the output sample order.
Review the attributes and context tags in the Sample Request Conversion context definition.
| Attribute Name | Context Tag | Type | Description |
| SampleRequestId__std | SampleRequest_SampleRequestId__std | Attribute Tag | The unique ID of the originating Sample Request. |
| Account__std | SampleRequest_Account__std | Attribute Tag | The account associated with the sample request. |
| Contact__std | SampleRequest_Contact__std | Attribute Tag | The primary contact for the sample request. |
| PriceBook__std | SampleRequest_PriceBook__std | Attribute Tag | The price book used to validate product entries for the sample shipment. |
| Opportunity__std | SampleRequest_Opportunity__std | Attribute Tag | The linked opportunity record for ROI tracking. |
| Contract__std | SampleRequest_Contract__std | Attribute Tag | The contract associated with the sample or resulting order. |
| SalesAgreement__std | SampleRequest_SalesAgreement__std | Attribute Tag | The sales agreement to link the sample fulfillment to existing terms. |
| ShippingStreet__std | SampleRequest_ShippingStreet__std | Attribute Tag | The street address where the sample is delivered. |
| ShippingCity__std | SampleRequest_ShippingCity__std | Attribute Tag | The city for the sample delivery. |
| ShippingState__std | SampleRequest_ShippingState__std | Attribute Tag | The state or province for delivery. |
| ShippingPostalCode__std | SampleRequest_ShippingPostalCode__std | Attribute Tag | The zip or postal code for the shipping address. |
| ShippingCountry__std | SampleRequest_ShippingCountry__std | Attribute Tag | The country for the shipping address. |
| CustomerStreet__std | SampleRequest_CustomerStreet__std | Attribute Tag | The billing or customer street address. |
| CustomerCity__std | SampleRequest_CustomerCity__std | Attribute Tag | The billing or customer city. |
| CustomerState__std | SampleRequest_CustomerState__std | Attribute Tag | The billing or customer state. |
| CustomerPostalCode__std | SampleRequest_CustomerPostalCode__std | Attribute Tag | The billing or customer postal code. |
| CustomerCountry__std | SampleRequest_CustomerCountry__std | Attribute Tag | The billing or customer country. |
| StartDate__std | SampleRequest_StartDate__std | Attribute Tag | The start date of the sample evaluation or order. |
| EndDate__std | SampleRequest_EndDate__std | Attribute Tag | The end date of the sample evaluation or order. |
| Status__std | NA | Attribute Tag | The status of the sample order conversion process. |
| CurrencyIsoCode__std | SampleRequest_CurrencyIsoCode__std | Attribute Tag | The currency code used for the transaction. |
- Extending the Sample Request Conversion Definition
While the SampleRequestConversion context definition provides a standard mapping for essential fields such as Address, Account, and Price Book, your business process may require additional data to be carried over to the order—such as custom "Handling Instructions" or "Special Discount Codes."
