Source: https://vaultcrmhelp.veeva.com/doc/Content/CRM_topics/OrderManagement/CreatingOrders/OrderLines/Pull_InFields.htm

## Pull-In Fields on Order Lines

Users can view fields from the associated product, product information, and inventory monitoring line records on order lines when placing an order. This can include stock levels, historic sales data, product presence, or other helpful information. For example, if a pharmacy wants to place an order for Cholecap 10mg, users can view the YTD sales of Cholecap 10mg for the pharmacy directly on the order line.

The Browser platform does not support pull-in fields for Inventory Monitoring line records.

**Who can use this feature?**

* End Users - Browser, iPad, Windows
* [Using Pull-In Fields on Order Lines](#Using)
* Order Admins - Browser
* [Creating Pull-In Fields on Order Lines](#Creating)
* Users do not require an additional license

### Configuring Pull-In Fields on Order Lines for

[![Closed](../../../../../Skins/Default/Stylesheets/Images/transparent.gif)All Users](#)

To configure this feature:

1. Ensure [Configuring Order Management](../../OM_Config.htm) is complete.
2. Ensure [Configuring Inventory Monitoring](../../../InventoryMonitoring/ConfiguringIM.htm) is complete, if using Inventory Monitoring pull-in fields.
3. Provide the following permissions to enable Pull-In Fields on Order Lines:

   | Object | Object Permissions | Object Types | Fields | Field Permissions |
   | --- | --- | --- | --- | --- |
   | order\_line\_\_v | CRED | All | Any custom fields | Edit |
   | product\_\_v | R | n/a | Any custom fields | Read |
   | product\_information\_\_v | R | All | * account\_\_v * product\_\_v * Any custom fields | Read |
4. Enable the following VMOCs for the appropriate mobile devices:
   * product\_information\_\_v
   * inventory\_monitoring\_line\_\_v - If using Inventory Monitoring pull-in fields (Not currently supported on Browser)

### Creating Pull-In Fields on Order Lines as

[![Closed](../../../../../Skins/Default/Stylesheets/Images/transparent.gif)Order Admins](#)

Fields from the following objects can be displayed as pull-in fields on order lines when placing an order:

| Source Object Name | Source Object Prefix | Source Record |
| --- | --- | --- |
| inventory\_monitoring\_line\_\_v | zvod\_iml | The Inventory Monitoring Line record associated with the order's Last Inventory Monitoring record and the Product of the Order Line.  Not currently supported on Browser. |
| product\_\_v | zvod\_pc | The product record of the order line. |
| product\_information\_\_v | zvod\_pi | The product information record of the product of the order line and the account of the order. |

The following field types are supported:

* Text - Maximum length must be the same as the source field
* Number - Minimum value, Maximum value, and Decimal places attribute must be the same as the source field
* Date
* DateTime
* Yes/No
* Picklist - Single and Multi-select Picklists are supported. Picklist Value Names must be the same as the source field
* Object
* Currency

To populate Inventory Monitoring Line values as expected, the system filters for records matching the following criteria:

* The line's parent Inventory Monitoring record must match the Order's Last Inventory Monitoring reference field
* The line's Product field must match the Order Line's Product field

If multiple Inventory Monitoring Line records match the criteria, the system selects the record with the highest Line Rank value.

To create a pull-in field on an Order Line:

1. Navigate to **Admin > Configuration > Object > order\_line\_\_v**.
2. Select the **Fields** tab.
3. Select **Create**.
4. Select the **Field Type**. The field type must be the same as the field type of the field on the corresponding product, product information, or inventory monitoring line object.
5. Enter a **Label** for the field. The label is not considered in the pull-in field logic.
6. Enter a **Name** for the field according to the naming guidelines:
   * zvod\_[Object Prefix of Source Object]\_[API Name of Source Field]\_\_c
   * For example, zvod\_oc\_description\_\_c
7. Enter field attributes according to the attributes of the source field.
8. Select **Save**.

For example, a field named zvod\_pi\_ytd\_sales\_\_c displays the ytd\_sales\_\_c field value from the product\_information\_\_v object for the product on the order line and the account on the order directly on the order line.

A custom pull-in field can be created for a standard source field. The \_\_c and \_\_v field API name suffixes are ignored when comparing field names for pull-in fields.

### Using Pull-In Fields on Order Lines as

[![Closed](../../../../../Skins/Default/Stylesheets/Images/transparent.gif)End Users](#)

When creating a new order, pull-in fields are automatically retrieved and display values from the associated Account, Contract, Addresses, or Campaign. Users can edit and override pull-in field values before saving, provided the fields are not configured as read-only.

Once the order is created and saved, the values are permanently stamped on the Order record. Subsequent edits to fields on the parent Account or Contract record do not modify the Order record's values.
