使用NodeJ同步执行SuiteCRM调用

时间:2017-02-15 10:11:44

标签: node.js sugarcrm suitecrm

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

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()作为一种可能的解决方案,但我仍然没有得到如何在我的情况下使用它。

0 个答案:

没有答案