Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 使用NodeJs同步执行suiterm调用_Node.js_Sugarcrm_Suitecrm - Fatal编程技术网

Node.js 使用NodeJs同步执行suiterm调用

Node.js 使用NodeJs同步执行suiterm调用,node.js,sugarcrm,suitecrm,Node.js,Sugarcrm,Suitecrm,我正在使用set entry调用更新SuiteRM中的数据。但我的问题是调用是异步的,我希望它是同步的。我在NodeJS中的代码。请帮帮我 CRM.set_entry("Cases",array_to_set_entry[i],function(err1, res1, body1){ console.log("I am inside crm set_entry"); if (body1 && typeof body1.id !== constant.undefined)

我正在使用set entry调用更新SuiteRM中的数据。但我的问题是调用是异步的,我希望它是同步的。我在NodeJS中的代码。请帮帮我

CRM.set_entry("Cases",array_to_set_entry[i],function(err1, res1, body1){
console.log("I am inside crm set_entry");
    if (body1 && typeof body1.id !== constant.undefined) {

        console.log("checkCRM")
    }
else {
    console.log("checkCRM failed")
    } });
我在堆栈溢出中搜索解决方案。我发现async.queue()是一个可能的解决方案,但我仍然不知道如何在我的案例中使用它