Announcement

Collapse
No announcement yet.

What's the difference between API Before-Save Script and Before-save custom script?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What's the difference between API Before-Save Script and Before-save custom script?

    As far as I could understand, both are run before an entity is saved. So, are they similar or entirely different things..?

  • #2
    It's explained in docs https://docs.espocrm.com/administrat...e-save-script/

    And in the UI.

    Click image for larger version

Name:	image.png
Views:	51
Size:	27.6 KB
ID:	111758

    Comment


    • #3
      The API script will run only when you save via the API (that includes saving from the UI). It won't run when a record is saved from workflows, other formula script, from code, etc. This provides the ability to validate a user input or perform access checks.

      Comment


      • #4
        Thank you for you response.

        Comment

        Working...
        X