record\update doesn't trigger recalculate formula

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Frantisek
    Junior Member
    • Dec 2021
    • 5

    record\update doesn't trigger recalculate formula

    Hi,
    if i use record\update in Before Save Custom script for updating field it will only update target field, but it doesn't trigger recalculate formula.

    If I do the same in Workflow it works fine.

    any ideas?

    Espo 7.1.7
    Advanced Pack 2.10.0
    thanks
    Frantisek
  • rabii
    Active Community Member
    • Jun 2016
    • 1250

    #2
    what do you mean?

    record\update only get trigger when the record updates.
    Rabii
    Web Dev

    Comment

    • DashingUno
      Member
      • Apr 2022
      • 45

      #3
      I think I've encountered smth similar before, the thing is that the formula executes before the record is saved, so the formula is in fact recalculated, just before your current record is saved, if you create another record you will get previous record result in the recalculated formula

      Comment

      Working...