We just migrated our onpremise CRM to Microsoft Dynamics 365 (version 1710 (9.1.0.646) online. We just noticed that one custom field isn't working as intended (we used to calculate this field inside our SQL server). But because we migrated to the cloud this solution isn't working anymore.
What we are trying to achieve:
We have an custom entity called "service credit". On the entity you can see the 'up to date credit' of an organisation that is recalculated when an underlaying activity (other entity) is created, modified or deleted. So for example:
activity 1: deposit +1000
activity 2: activity - 750
activity 3: deposit +1000
activity 4: activity -500
activity 5: activity -500
So the field 'up to date credit' in the old situation (reminder: this field would be calculated inside SQL) would be an positive balance of +250 (1000-750+1000-500-500). So if activity 2 would be modified to let's say -500 the field would be recalculated to an positive balance of +500 (1000-500+1000-500-500)
How am i going to achieve this same behaviour inside dynamics only?