Work Order Line Items Syncing with Price Books in Winter 17
|Knowledge Article Number||000247070|
If you’re using the pricing features on work orders, you’ll know that you can associate a price book with each work order, and price book entries (products) to each of the work order’s line items. For example, you can associate your “Standard Price Book” with a particular work order, and create three line items on the work order which correspond to Product A, Product B, and Product C as listed in the price book.
If you weren’t using the pricing fields, including Product, on work orders before Winter ’17, these changes don’t affect you.
This information is also available in the Winter '17 Release Notes.
If you were using the pricing fields on work orders before Winter ’17, we recommend taking the following steps:
1. Update to API version 38.0 to keep your data in sync.
2. If you’ve written custom code or apps that reference the Product2Id field on work order line items, update your code to reference the PricebookEntryId field instead.
3. If you need the Product2Id field on work order line items to be editable, consider creating a custom Visualforce page based on API version 37.0.
4. Check your work order line item page layouts to make sure they contain the Product field (whose API name is PricebookEntryId) so you can continue associating work order line items with products.
This table explains how existing work order line items are affected when you upgrade to API version 38.0 (Winter ’17). In some cases the Product field must be updated manually.