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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Loyalty calculation system

(0) ShareShare
ReportReport
Posted on by 565

Hi,

I want a way to calculate points, each invoice with an amount of 100$ = 1 point

any idea please.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Loyalty calculation system

    Hi Happyman,

    Before I offer the two ways this can be done, I will make the following assumptions:

    Security permissions = I assume you have been given system admin / system customizer roles in order to complete this requirement.

    Invoices = are standard invoices in Dynamics 365 / Microsoft CRM

    Customer = account only for this scenario, but can be any other entity depending on who the invoice is associated too.

    You could complete this requirement in two ways:

    1st

    Create a custom workflow that when an invoices status is changed or the amount field contains data (depends on when you would want to trigger the workflow), increment a new field on the account by a value dependent on the amount on the invoice. I.e. 200$+ = 2 points, 100-200$ = 1 point etc.

    You can use the same workflow to decrease the points if the invoice is cancelled or deleted at any point.

    2nd

    You can use a a roll-up field to do a count of the number of invoices that fall within a certain value.

    (seen in this video: www.youtube.com/watch)

    Then add in an Entity level business rule or calculated field that sums up all the points associated to the roll-up field(s).

    The calculated field could work better as it can manipulate the values before it calculates them. For example, a roll-up field for 200$+ would be given a count of 2 (2 fulfilled invoices connected to that customer). The calculated field could take that value, multiple it by 2 and then sum it with any other roll-up fields associated to the same count.

    (how to use calculated fields: docs.microsoft.com/.../define-calculated-fields)

    Each solution offered above depends on how you would want to meet this requirement. While I might not be able to give you the exact solution, you can use the above to consider each offered approach as a way to meet this requirement.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans