Announcement

Collapse
No announcement yet.

Show in Stream what exactly was updated by a user in a Field

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

  • Show in Stream what exactly was updated by a user in a Field

    Hello!


    Is there a possibility to show in Stream what exactly was updated by a user in a Field Contents?


    Usually it looks like:

    « Admin updated this (Entity name)

    (Name of the field that was updated)

    (Time)»

    Like so:​


    Click image for larger version

Name:	-1.png
Views:	336
Size:	14.1 KB
ID:	86104




    How would it look:

    « Admin updated this (Entity name)

    (Name of the field that was updated), From: (Previous contents of the Entity) -> To: (Updated contents of the Entity)

    (Time)»

    Like so:​



    Click image for larger version

Name:	-2.png
Views:	295
Size:	21.7 KB
ID:	86105



    How can we implement this?


    Buy an Extension? (I have not seen one fitting this issue)
    Write code/Plugin?


    Thank You all for wonderful documentation and wishing you well!​


  • #2
    You have to enable the “Audited” option for the field you wish to have the change saved in the stream.

    Comment


    • Prez
      Prez commented
      Editing a comment
      This option is already enabled for this Field. It shows which field was edited, at which time.
      My question was about the history of the fields contents.

      (Small remark: the first screenshot is how it is now; and the second screenshot is how it supposed to be, I edited it manually to better explain my idea)

  • #3
    I do get the field history, maybe it doesn’t work for certain field types.

    also update to latest version to get a better interface for updates.

    relevant thread: https://forum.espocrm.com/forum/gene...w-config-audit
    Last edited by Kharg; 12-08-2022, 10:04 PM.

    Comment


    • Prez
      Prez commented
      Editing a comment
      Hi!

      Espocrm version: 7.2.7


      Here is what is in the Entity file for this field:

      ...
      "description": {
      "type": "text",
      "audited": true
      },
      ...

  • #4
    Think you doing something wrong. See my screenshot, with Description it is a bit funny looking.
    Click image for larger version

Name:	image.png
Views:	211
Size:	24.9 KB
ID:	86127


    Description fail:
    Click image for larger version

Name:	image.png
Views:	212
Size:	5.6 KB
ID:	86128

    Comment


    • Prez
      Prez commented
      Editing a comment
      Hello!

      The same goes for any "text" value apparently.

      Despite:
      ...
      "description": {
      "type": "text",
      "audited": true
      },
      ...


      But Varchar works just fine

    • esforim
      esforim commented
      Editing a comment
      Doesn't look like text and WYSIWYG field support it at the moment. You would need to feature request or edit the code yourself.

  • #5
    Thank You all for help!

    Comment

    Working...
    X