RE: nlapiSendEmail API work on External SuiteLet or not?
Hi,
Can you please help me.
nlapiSendEmail API work on External SuiteLet or not?
The solution for that is to add inline html field with the default value that executes script, then use ajax, fetch etc. that invokes suitelet then the suitelet will do the work
Hi,
Thanks for the response.
Can you please help me with some sample code.
How to add ajax call in backend Suitelet?
Sample:
form.addField(‘custpage_inlinehtml’, ”, ‘inlinehtml’).setDefaultValue(‘<script>jQuery(document).ready(function() {jQuery.ajax({url:”SUITELET_URL”, data:JSON.stringify({“key”:”value”})})})</script>’)