web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

How to create a field which sums the cost of products on Order line by Category?

(0) ShareShare
ReportReport
Posted on by 155

Hi Guys,

Im trying to create a field where it gets the sum of the products under our OrderLine per category however have had no luck.

The "Product category" field does not seem to be carried over onto the Order line hence the roll up field does not work.

I tried to create a lookup field onto the form for products inside Orderline and tried to create a Calculated field there that looks up for the product category however have had no luck as well.

Can this be done without doing any custom scripts?

  • Suggested answer
    Paul_Owen Profile Picture
    2,027 on at

    Hi, accessing anything other than the product name can't be done as you've discovered. I recently had to do this for a customer so I added the product type into the product name so append the product name in brackets after. Not ideal as it will show that on a Word document if you create a document it from the Quote/Order, you could use an abbreviation so just a couple of characters perhaps.

    You can then reference that criteria in your rollup fields on Opportunity/Quote/Order. Bear in mind rollups only run every hour unless the user manually triggers it so I used the rollup plugin from MSCRM Workflowtools solution that will trigger the rollup on create of an order line item for example, you can downlaod the solution from here https://github.com/demianrasko/Dynamics-365-Workflow-Tools

    Regards

    Paul

  • Jimmar Tangkia Profile Picture
    155 on at

    Hi Paul,

    Thanks for this suggestion. Just a follow up, how do you actually do this?

    "used the rollup plugin from MSCRM Workflowtools solution that will trigger the rollup on create of an order line item"

    I was thinking of creating a workflow where it fires up if record fields change, however i am not able to see any orderline field there?

  • Suggested answer
    Paul_Owen Profile Picture
    2,027 on at

    With the rollup plugin you need to run it on create of order line item and specify the parent dynamic url which will be the Order

    pastedimage1585751744744v1.png

    Regards

    Paul

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Syed Aqib Raza Profile Picture

Syed Aqib Raza 42

#2
11manish Profile Picture

11manish 19 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 19

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans