This topic contains 2 replies, has 0 voices, and was last updated by jshepler 6 years, 7 months ago.
-
AuthorPosts
-
April 6, 2018 at 7:56 am #18067
jsheplerRelated to my other post, I’m doing a search to find open creditmemo records on a billing account, but my filter on status isn’t working. If I add the filter, I get 0 rows returned. If I remove the filter and add the status column to the results, it clearly shows that it matches my filter.
Code:
var billingAccountFilter = search.createFilter({ name: “billingaccount”, operator: search.Operator.IS, values: “512” });
var statusFilter = search.createFilter({ name: “status”, operator: search.Operator.IS, values: “open” });
// var openCreditsSearch = search.create({ type: search.Type.CREDIT_MEMO, filters: [billingAccountFilter, statusFilter]});
var openCreditsSearch = search.create({ type: search.Type.CREDIT_MEMO, filters: [billingAccountFilter], columns: [“status”]});
var results = openCreditsSearch.run().getRange(0, 1000);return results;
[
{
“recordType”: “creditmemo”,
“id”: “2784”,
“values”: {
“status”: [
{
“value”: “open”,
“text”: “Open”
}
]
}
},
{
“recordType”: “creditmemo”,
“id”: “2784”,
“values”: {
“status”: [
{
“value”: “open”,
“text”: “Open”
}
]
}
},
{
“recordType”: “creditmemo”,
“id”: “2784”,
“values”: {
“status”: [
{
“value”: “open”,
“text”: “Open”
}
]
}
}
]What am I doing wrong?
I’ve tried “Open” and “open”, I’ve tried the operator “ANYOF” and passed the array [“open”] to values.
This is a cached copy. Click here to see the original post. -
April 8, 2018 at 8:17 am #18068
Vedahi,
internal id for CreditMemo Open Status is: CustCred:A
Pls see: https://netsuite.custhelp.com/app/an…0memo%20status
thanks,
Veda.
-
April 9, 2018 at 2:43 pm #18069
jsheplerThat worked, thanks.
-
AuthorPosts
You must be logged in to reply to this topic.