Thanks for the answer, I already tried to look at the guide, but I could not understand.
I looked in the forum for some real examples of situations in which hooks are used because with the examples it is easier to test but I could not find them.
I can not understand how these are recalled. In the example I did at the beginning I tried to change the command
console.log (‘Try AfterInsert’ + context);
but it gives me the error undefine context.
So I do not know how to use them. It’s not that you can help me with a causal example