2017-08-22 58 views

回答

0

這是一般的想法 1)要求爲腳本的URL系統(在賬戶獨立的方式) 2)平它,以確保一切正在工作

require(['N/url', 'N/https'], function(url, https){ 
    var suiteletUrl = url.resolveScript({ 
     scriptid : 'custscript_my_script_id', //replace this 
     deploymentId : 'custdeploy_my_deployment_id', //replace this 
     returnExternalUrl : false, 
     params : { 
      foo : 'foo' //replace this 
     } 
    }); 
    //simplified 
    var response = https.get({url : suiteletUrl}); 
    log.debug('suitelet response', response); 
}); 
相關問題