New case note logic hook

I want to fire an after save logic hook when a new case note is created and saved. As notes are used by multiple modules, I wandered the best place for the login hook

1. On the case module and run on new note

2 On the notes module when parent module is Cases

was thinking to check against the parent with an on save hook against parent->type == Case

    "parent": {
        "_acl": {
            "fields": {
                "dri_workflow_template_id": {
                    "create": "no",
                    "write": "no",
                    "license": "no"
                },
                "dri_workflow_template_name": {
                    "create": "no",
                    "write": "no",
                    "license": "no"
                }
            },
            "_hash": "bf2bc9611a03b9289b43e6d828070ae2"
        },
        "id": "3456ce30-faf5-11ed-9bfb-0645eac4c674",
        "type": "Cases",
        "name": "CASE-88860"
    },

just wandered the best place to run the hook from

Parents Reply
  • Hey  ,

    To clarify:

    • Logic hooks are a backend technology (they run on the server)
    • App.* is a frontend technology (runs on your browser)

    The frontend "talks" to the backend via APIs.

    If you need some visual alert you would need to implement that on the frontend, either by validating just on the frontend the user input/actions, or after confirming the actions (or no actions) of the backend

    Hope it helps

    --

    Enrico Simonetti

    Sugar veteran (from 2007)

    www.naonis.tech


    Feel free to reach out for consulting regarding:

    • API Integration and Automation Services
    • Sugar Architecture
    • Sugar Performance Optimisation
    • Sugar Consulting, Best Practices and Technical Training
    • AWS and Sugar Technical Help
    • CTO-as-a-service
    • Solutions-as-a-service
    • and more!

    All active SugarCRM certifications

    Actively working remotely with customers based in APAC and in the United States

Children