Hey ya'll - I'm executing an existing search in a ...
# general
s
Hey ya'll - I'm executing an existing search in a scheduled script, but it looks like the pageRangeLength is 0 (which I imagine it's just not returning any results). When I run the search in the UI, I get 5 results! Anybody experience a similar issue?
b
Sounds weird
What are the filters of the search
s
Thanks for the response! Nothing really that out of the ordinary, except for one filter > Type = Sales Order Main Line = True Date = After 8/1 Formula = case when {name} <> {applyingtransaction.name} then 1 else 0 end Basically, the formula is supposed to look at discrepancies between the Sales Order Customer and the Customer Deposit (Applying Transaction) Customer.
e
@Sirus Badiee Could you post your code?
s
Sure thing - much appreciated @ericbirdsall
Merge SO Cust to CD Cust.txt
The only relevant bit is before * // This is where the code breaks because pageRangeLeangth = 0, so the code never enters in the for loop*
e
I cant seem to find anything in the documentation about this property
pagedData.pageRanges.length
Are you possibly looking for pagedData.count?
s
Hm, it's worked before...
But yes, count would make sense as well.
b
Whats the value of mySearch.filterExpression