Javascript 可以从ServiceNow业务规则直接调用AWS SDK吗?我可以使用它更新amazon lex插槽吗?
我在SN中有一个业务规则,它将表中的csv数据转换为json对象。我需要json对象采用AmazonLex要求的插槽值格式。(特定的json对象结构)。有了这个,我需要以某种方式调用aws sdk进行身份验证,以便更新lex bot插槽。我已经尝试了以下代码,但我知道由于脚本的客户端部分,它将无法正常工作Javascript 可以从ServiceNow业务规则直接调用AWS SDK吗?我可以使用它更新amazon lex插槽吗?,javascript,amazon-web-services,servicenow,amazon-lex,Javascript,Amazon Web Services,Servicenow,Amazon Lex,我在SN中有一个业务规则,它将表中的csv数据转换为json对象。我需要json对象采用AmazonLex要求的插槽值格式。(特定的json对象结构)。有了这个,我需要以某种方式调用aws sdk进行身份验证,以便更新lex bot插槽。我已经尝试了以下代码,但我知道由于脚本的客户端部分,它将无法正常工作 (function executeRule(current, previous /*null when async*/) { var AWS = getTopWindow().doc
(function executeRule(current, previous /*null when async*/) {
var AWS = getTopWindow().document.createElement('script');
AWS.src = 'https://sdk.amazonaws.com/js/aws-sdk-2.388.0.min.js';
g_form.getFormElement().appendChild(AWS);
AWS.onload = function() {
callback();
};
gs.includes('CSVtoJSON');
//this gives access to the object and it's methods / properties
var csvToJSON = new CSVtoJSON();
//this runs the function getAttachmentGR
csvToJSON.getAttachmentGR(sys_id);
})(current, previous);
如果可能,我可以在这里做些什么来纠正我的问题