Calling suitelet from HTML by AJAX method (Backend function)

function fetchDetails(){
    let internalIdArrayCheck=CUSTOM_IF_DETAILED_ARRAY.split('_');
    if(internalIdArrayCheck.length==1) {
        console.log('CUSTOM_IF_DETAILED_ARRAY',CUSTOM_IF_DETAILED_ARRAY)
        $.get('/app/site/hosting/scriptlet.nl?script=1525&deploy=1&resultData=' +dataStringify)
    }
    setTimeout("window.close()", 50);
}

In this case, the front-end functionality will be running and closing the window, but the suite let we have called will be triggered in the backend and do the functionality. This helps the front end side much faster.

Leave a comment

Your email address will not be published. Required fields are marked *