Once Custom script is created from erpnext application that is not appeared in code. Logged in as administrator and added scripts.
Hi @keerthi_kuttan:
Custom script (client or server script) is not added to code. Is stored in database.
Framework, at run time, reads this scripts and “inject” them on runtime execution.
So how to call a python script using client script.
Example:
frappe.call({
method: ‘custom_app.custom_module.custom_script.my_python_function’,
args: {
arg1: arg1,
arg2: arg2
},
what is custom_app, custom_module, custom_script, my_python_function
Hi @keerthi_kuttan:
Create server script, type “API”
From client side call it directly with method name.
frappe.call({
method: ‘yourmethod,`
Check this thread:
Hope this helps.
1 Like
create an API to fetch values from database frappe
1 Like