简体   繁体   中英

How can I change the deployed status of a script through code? Netsuite SuiteScript 2.0

Can somebody explain how can I change the deployment status for any script through code? Appreciate the help. Thank you.

You can use the submitFields method of the N/record module.

record.submitFields({
    type: record.Type.SCRIPT_DEPLOYMENT,
    id: scriptDeploymentId,
    values: {
        status: 'RELEASED' // or 'TESTING'
    }
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM