Creating function in the code and calling it in system console and client and server scripts

I have built a function and I need to use to be able to use and call it in the client and server scripts and in system console. My question is where should I define this function, in which file? and what should I do to be able to access and call in Frappe interface?

Kindly help
Thank you

Hey!

Define it in your custom app and be sure to whitelist it, you will be able to call it from client script then.

1 Like