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

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"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"
},
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

just wandered the best place to run the hook from