detecting change in fields?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamie
    Senior Member
    • Aug 2025
    • 244

    #1

    detecting change in fields?

    I need to set up a system that alerts a team whenever a specific set of values changes.

    For example, if a contact’s name is updated, our marketing team should receive a notification showing both the old value and the new one.

    I then want to take these values and feed them into a PHP script to send out alerts and create tasks.

    I already have most of the PHP script ready, but I’m not sure how to track the previous and current values and trigger an action when a change occurs.

    Any advice on how to achieve this would be greatly appreciated!
  • victor
    Active Community Member
    • Aug 2022
    • 1144

    #2
    If I understood you correctly, but the previous and current field values ​can be passed to the notification using a simple workflow (Advanced Pack needed).

    Click image for larger version

Name:	image.png
Views:	0
Size:	76.8 KB
ID:	125197
    More about these functions:
    - https://docs.espocrm.com/administrat...tributefetched
    - https://docs.espocrm.com/administrat...tyattribute​

    Comment

    • jamie
      Senior Member
      • Aug 2025
      • 244

      #3
      victor that isn't a bad option, though I ultimately want to do it for many fields and send a notification to a team

      for example
      name, price, contact -> sales team
      name, description, product -> production team

      Comment


      • victor
        victor commented
        Editing a comment
        Use 2 different Actions -> Create Notification:
        1. Sends a notification for "sales team" with some variables (for "name", "price", "contact').
        2. Sends a notification for "production team" with other variables (for "name", "description", "product").

        Of course, for this it will be worth modifying the Action with "Execute Formula Script", where you will first need to create the required number of variables.
        Last edited by victor; Yesterday, 11:58 AM.
    Working...