Server side on validate script (server side script)

Hello i have an sms python code that i want to send on validate (create,edit…), i am wondering how i can create a server side script that get the phone number of the doc and pass it to my python code.

Hi @Oasis_Agano

Using custom app’s hooks
https://frappe.io/docs/user/en/guides/basics/hooks