How to use whitelisted function in Server Script

Hello Friends,
Newbie here!

How can I call or a python whitelisted function in Server Script?
I want to call method erpnext.setup.doctype.sms_settings.sms_settings.send_sms to send SMS and to fetch leave balance.

I appreciate your help.

@hiimkhaled Kindly refer this link.

1 Like

And is it possible to call whitelisted function from a server script (not from JS).

OK, just figure out it is so simple,

address =‘my_app.utils.get_address_by_tax_id’, tax_id=doc.tax_id, branch=doc.branch)