Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
script to find rev rec schedules
I am using api suitescript to pull information from rev rec schedules.
Basically I need to pull all rev rec schedules belonging to a particular
cash sale.
I have tried all possible methods but there seems to be no field on
Rev Rec Schedules which will allow filtering the search.
My code is :
var rrfilters = new Array();
rrfilters[0] = new nlobjSearchFilter('internalid', null, 'noneOf', '@NONE@');
rrfilters[1] = new nlobjSearchFilter('sourcetran', null, 'anyOf', csrid);
var rrsresults = nlapiSearchRecord('revrecschedule', null, rrfilters, null)
But it seems sourcetran as a filter is not supported it gives error messasge
'invalid search filter'
Any tips that I can filter Rev Rec Schedules based on Transaction or Customers.