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 :
Microsoft Dynamics CRM (Archived)

Running points total?

(0) ShareShare
ReportReport
Posted on by

Hi, 

We have rewards system made up of transactions that can either debit or credit the total points on a contact record. We're looking to add two fields to the transaction entity:

  • Beginning Balance
  • Ending Balance

So, when the transaction is created, we look at the contact's current total, set transaction beginning balance to that total and then set ending balance to contact's current total + this new transaction's points.

I can accomplish this with a workflow, but I was curious if there's a way to accomplish this with a rollup fields. I would also need to use multiple conditionals like if it's a deposit transaction, add points. If duduct transaction, remove points. Is multi branch logic possible in rollup fields? I didn't see it when in the editor.

Thank you,
Tony

*This post is locked for comments

I have the same question (0)
  • Abby Kong Profile Picture
    6 on at

    Edited:  this solution does not work, please check the post after this one.

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------

    From my understanding, rollup field need to have a return type of aggregated value (SUM, MAX, MIN, COUNT, AVG) with optional filters

    Here is what I can think of to accomplish with rollup field:

    1. Create a new field, like 'Balance Impact Point', make the value to CreditPoint??0-DebitPoint??0

    (LOL, not a good field name I know. I'm really bad at naming things, hope you understand what I mean)

    2. Rollup on this new field

    Begin Balance = Sum(BalanceImpactPoint) with filter transaction number(whatever field you define transaction order) less than current transaction
    End Balance = Sum(BalanceImpactPoint) with filter transaction number(whatever field you define transaction order) less or equal to the current transaction

    *Note, the field in point 1 can't be a calculated field, because you cant rollup on a calculated field.

    Regards,

    Abby

  • Verified answer
    Abby Kong Profile Picture
    6 on at

    Hi Anatoliy,

    Apologize above solutions will not work.

    I gave it a try, I can only add a 1-N relationship one level down from roll up field editor, thus other transactions are not accessible from rollup field under transaction.

    Above method can only work on parent account entity to get current total balance. It does not work for running balance on transactions.

    Apologize for the mistake.

    Regards,

    Abby

  • Community Member Profile Picture
    on at

    Thank you for checking. I will have to create 2 fields. Beginning and ending balance and use a workflow to populate those values based on multi branch logic.

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans