PROPERTY CALCULATOR

I noticed a cool new function PROPERTY CALCULATOR. I would like to test if using this new function it would be possible to make a sum of hours worked on for example a service ticket or a business case. We have some class, e.g. a business case, where the hours worked are recorded, see fig:  

Thanks advance!

Does anyone have experience with this?

- pehol

Parents Reply
  • I have used same combo as well. It works in specific use cases but there is one drawback. If someone change number of hours in "hours worked" object, the sum will not get updated. CK does not trigger calculation, because list of "hours worked" objects is not changed.

    Instead of CK, PC's "Update related objects" rule can trigger the calculation when either Business case or hours is modified. But taking that into use, I would recommend not to use Managed properties with that. (They would both try to update same objects which lead sometimes weird conflicts.)

    My suggestion is to use following PC configurations:

    • For Business Case:
      • Search objects -rule to collect list of "hours worked".
      • Calculate expression -rule to count sum of hours
      • (After calculation, "Hours worked" list can be removed with "Remove Property" - mode if you do not want to leave it visible on metadata)
    • For Hours worked:
      • Update related objects rule to update Business case if Business case or hours is modified.
        • You probably want to set "Update objects behind removed lookups" and "Update immediately" flags on in configs.
Children