- Create a Suitelet script file and add the required fields to create a custom record. Get the parameter list from the parameter body.
if (scriptContext.request.method === 'POST') {
var data = JSON.parse(scriptContext.request.body);
log.debug('data',data)
let name = data.custpage_jj_name;
let age = data.custpage_jj_age;
let address = data.custpage_jj_address;
let sex = data.custpage_jj_sex;
log.debug('name',name)
2.Deploy the script. While deploying the script, take care of the following steps:
- Check ‘Available without Login’ checkbox.
- Make ‘Status’ as ‘released’.
- Make ‘Role’ as ‘Administrator’.
- Once you save the script, you will get the external url.
3.Copy the external url and paste it in Postman.
- In headers tab, uncheck ‘User-agent’ and add key ‘User-agent’ as ‘Mozilla/5.0’.
- Give the fields in the Body section
4.Run the post request and the custom record will be created