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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Margin Calculation in Opportunities

(0) ShareShare
ReportReport
Posted on by 20

I am trying to get a % margin calculation on each opportunity line item.

I have added a new field in the opportunity line entity as a calculated field but can't figure out how to pull in the current cost from the products list in order to do the calculation. 

Is there a way of doing without custom code?

I have the same question (0)
  • Esteban Coto Alfaro Profile Picture
    on at

    Hello, I would recommend making a business rule, I attach the link to review the information: docs.microsoft.com/.../create-business-rules-recommendations-apply-logic-form

    The other option would be to do it from JavaScript.

    Thanks!

    Community Support Team - Esteban

    If this Post helps, then please consider Accept as solution to help the other members find it more quickly.

  • Duncan McKenzie Profile Picture
    20 on at

    Thanks for reply, but I am struggling with this. I am creating the business rule in the opportunity line entity and need to access current cost information in the Products list. I can't seem to find  how I do this within a business rule.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans