API Befor-Save Script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1602

    API Befor-Save Script

    Hi, could anybody shed a bit light on this new function from 7.5? It says in the documentation, it would be a formula to use before save. What does that mean really? Can we use the formula system in this meaning, to have records calculated when creating and updating? Can we use the same formulas?

    Thanks in advance.
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Hi, In entity manager there's an explanation text.

    Click image for larger version  Name:	image.png Views:	0 Size:	27.3 KB ID:	94336
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment


    • yuri
      yuri commented
      Editing a comment
      It's possible to set fields in API before-save script too. But the script won't be executed when the record is saved by a workflow, mass-update, other formula, by some backend script. So in most cases, it's reasonable to use the regular before-save script.
Working...