Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Search on creditmemo records returns multiple rows per record
I'm trying to run a search for open creditmemos on a billing account, but I'm getting 3 rows per record and I don't know why.
I've simplified the search and put it in a restlet that I call from postman. The billing account I'm using to test with has a single credit memo, but 3 rows are returned from the search with the same id:
var billingAccountFilter = search.createFilter({ name: "billingaccount", operator: search.Operator.IS, values: "512" }); var openCreditsSearch = search.create({ type: search.Type.CREDIT_MEMO, filters: [billingAccountFilter]}); var results = openCreditsSearch.run().getRange(0, 1000); return results; [ { "recordType": "creditmemo", "id": "2784", "values": {} }, { "recordType": "creditmemo", "id": "2784", "values": {} }, { "recordType": "creditmemo", "id": "2784", "values": {} } ] 0