Does anyone know how to send SMS alert from script ?? i couldn’t find any custom script…
this is the link, it just tells that what will be the settings but i have to do it by script and on_submit button … anyone could help me please… highly thankful
i have seen many sms providers and they are providig sample code to integrate it with php, C# and many others but i havent seen i seen simple sample with erpnext… can you please help me with the steps how to integrate and send sms …
thanx in advance @Sagar_Bhogayata
@Sagar_Bhogayata - thanks - was looking for a way to setup an automatic sms notification. Can you add document number (sales invoice number) or total amount for this custom script? Will appreciate guidance on how to code it…
i am having an issue … when i trigger this event it says the message has been sent to the number but i am not receiving the message on my cellphone… i am using sms provider https://www.isms.com.my/isms_send.php
i have given its credentials but i think its not making connection with the api … can you help us with that ?
Can i write receiver_list like this ??
receiver_list: {
‘doctype’: ‘Property Sales Customer’,
‘filters’: {‘primary_correspondence’: 1,‘parent’:frm.doc.name},
‘fieldname’: [‘customer_tel’]
}, @Sagar_Bhogayata
After some trial and error - this is what seems to work for me:
frappe.ui.form.on("Sales Order", "on_submit", function(frm){
frappe.call({
method: "frappe.core.doctype.sms_settings.sms_settings.send_sms",
args: {
receiver_list: [frm.doc.contact_mobile],
msg: "Your Order "+[frm.doc.name]+" for the amount $"+[frm.doc.grand_total]+" has been received",
},
})
});
Hi Sagar - with update to V12 - where the mobile_number has been dropped for contact - how are you working with SMS function? Do you continue to use a custom field (which is not affected by upgrade)?