function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Eric GirouxEric Giroux 

how to use a custom field (formula) from order products for rollup calculation in order

I created a custom field (formula) in order products and need to use it in the calculation formula for a rollup type field in order.
the only fields available in the list of available fields to aggregate are quantity, list price and unit price. Is there a way to access that custom field ?
David ZhuDavid Zhu
The custom fields show in rollup summary field selection list in Order object.

The types of fields you can calculate in a roll-up summary field depend on the type of calculation. For example,Number, currency, and percent fields are available when you select SUM as the roll-up type.
Number, currency, percent, date, and date/time fields are available when you select MIN or MAX as the roll-up type.

refer to for details.
Eric GirouxEric Giroux
Thanks ! I got it working using number field, and workflow / field update to populate it