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.