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 :
Dynamics 365 Community / Blogs / xRMCenter / Entering to xRM World Part ...

Entering to xRM World Part 7 – Calculated & Rollup Fields

nghieppham Profile Picture nghieppham 4,755

In the old version, you often use JavaScript for basic calculating, such as discount money, calculate percent, set value of field base on value of different field…Of course, you can do that for new version too, but why do we do that if  new version has been supported new feature for implementing it easily. This article will introduce to you about Calculated & Roll up fields. 

Calculate Field

The purpose of calculate field is just help you to mate manual calculations without adding client script. We just use it in OOB tool for configuring the calculation.

You could combine this feature with business process flow for automatic process flow or simply to reduce your JavaScript code for basic calculating.

Specification of calculated field

  • Calculations use fields from current or related entities
  • Expression support available on the current and related parent entities.
  • Conditions can be added to support for branching

You can define the calculated field via creating new field and select the Field Type in OOB customization.

CalField

Creating calculated field

Then you can define the condition and set the value for calculated field.

CalField1

Note: You can combine this feature with business rule of entity. It will be more flexible for extending your MS CRM system

Roll up property

Like calculated field, rollup field also help you for automatically calculating, but it focus on:

  • Sum
  • Count
  • Min
  • Max
  • Avg

You can define Roll-up field as the same way you do for calculated fields and select the Roll-up in properties type.

Rollup1

And then you can add condition or adding relate entity to specify the  aggregating.

Rollup1

Note: Roll-up field will be run asynchronous

Hope it will be useful for some one.



This was originally posted here.

Comments

*This post is locked for comments