1
我得到了单个客户记录。现在我试图获取所有客户记录。我在以下链接中访问过类似的帖子。使用RESTlet从Netsuite获取特定记录类型的所有记录
ⅰ)Net Suite getting all records
ⅱ)How to read more than 1000 records return from netsuite search results in c#?
我计算出基于上述链接。但我无法得到结果。 我试了下面的代码。 帮我改进或建议替代代码。
function getAllIDs() {
//it returns all customer id and record type sample values: 6 , customer
return nlapiSearchRecord('customer', null, null, null);
}
function getAllRecord() {
var all_IDs = getAllIDs();
var len=all_IDs.length;
var result =new Array();
//so far working fine [id & recordtype]
/*
******* This is i want all customer details by giving id, recordtype ******
for(var i=0;i<len;i++) {
result[i]=nlapiLoadRecord(all_IDs[i].recordtype,all_IDs[i].id)
}
return result; //all customer details
********* end ********
*/
[return all_IDs;] //working fine
[return all_IDs[0];] //working fine o/p:{"id":"3","recordtype":"customer"}
[return all_IDs[0].id]; //working fine o/p: "3"
[return all_IDs[0].recordtype;] //not working
}
在此先感谢
非常感谢,它工作正常。 – Prabhu