How can I use the Notes (stream)? Workflows? Websocket?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rodrigocoelho
    Active Community Member
    • Jun 2016
    • 296

    How can I use the Notes (stream)? Workflows? Websocket?

    yuri
    How can I use the Notes (stream)?
    Workflows? Websocket?
    What is the best way?
    The best, for me, was using webhooks... But it doesn't work for notes.
    ​​​​​​​
    Thanks for answering..
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Webhooks does work only for entities that have "object": true set in metadata > scopes. You can set it to "true" manually.

    Workflows should work for notes.
    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

    • rodrigocoelho
      Active Community Member
      • Jun 2016
      • 296

      #3
      Originally posted by yuri
      Webhooks does work only for entities that have "object": true set in metadata > scopes. You can set it to "true" manually.

      Workflows should work for notes.
      I enabled the metadata > scopes for Note.json, now the webhook accepts it as an object, but it is not working.

      I did several posts and none was triggered on the webhook.

      Any other option?

      About the Workflows, it is not allowing the parent fields on the HTTP POST. Already reported on the support of the Advanced.....

      Thanks yuri

      Comment

      • Vadym
        Super Moderator
        • Jun 2021
        • 345

        #4
        Hi Rodrigo,

        Available to use fields in a payload, you can find in the "Note" database table.
        For other fields, you have to create `Note.json` file in `/custom/Espo/Custom/Resources/metadata/entityDefs` and describe each field with the code:

        Code:
        {
        "fields": {
        "name": {
        "type": "varchar",
        "notStorable": true
               }
            }
        }
        After this, create Workflow with Conditions and Execute Formula Script
        (with the formula for each created field in Note.json) before Send HTTP Request. (See attached screenshots below).

        Comment

        • rodrigocoelho
          Active Community Member
          • Jun 2016
          • 296

          #5
          Originally posted by Vadym
          Hi Rodrigo,

          Available to use fields in a payload, you can find in the "Note" database table.
          For other fields, you have to create `Note.json` file in `/custom/Espo/Custom/Resources/metadata/entityDefs` and describe each field with the code:

          Code:
          {
          "fields": {
          "name": {
          "type": "varchar",
          "notStorable": true
          }
          }
          }
          After this, create Workflow with Conditions and Execute Formula Script
          (with the formula for each created field in Note.json) before Send HTTP Request. (See attached screenshots below).
          Thanks, it works...

          Comment

          • emillod
            Active Community Member
            • Apr 2017
            • 1405

            #6
            Here you have how to create note without any changes in code. https://youtu.be/bIIt-FO9BE0

            Comment

            • rodrigocoelho
              Active Community Member
              • Jun 2016
              • 296

              #7
              Originally posted by emillod
              Here you have how to create note without any changes in code. https://youtu.be/bIIt-FO9BE0
              Thanks emillod , great videos.
              The problem is not how to create Notes, but how to use their info (and parent's info) as payload in an HTTP Post.

              Comment


              • emillod
                emillod commented
                Editing a comment
                I'm sorry. I had to missed something. Someone tried to do this and i thought it was you. I'm sorry.
            Working...