SS2.0 Suitelet Hello World

Other topics

Basic Hello World Suitelet - Plain Text Response

/**
*@NApiVersion 2.x
*@NScriptType Suitelet
*/

define([],function() { // NetSuite's AMD pattern
    function onRequest_entry(context) { // Suitelet entry function receives a context obj
        context.response.write('Hello World'); // Write a response using the context obj
    }
    return {
        onRequest: onRequest_entry // Function assigned to entry point
    };
});

Contributors

Topic Id: 6723

Example Ids: 22869

This site is not affiliated with any of the contributors.