Wrong parameter type: filters is expected as Array

I have created suitelet script. In first suitelet I have added select type fields. I am getting select fields data and passing that to second suitlet through redirect parameters. I get parameters in second sutelet. Now I am passing those parameters to saved search filters. But I am getting error as:  “Wrong parameter type: filters is expected as Array” Please help!

My parameters in second suitelet are,

subsidiaryParameter 2
localGroupParameter 10
periodParameter 11
frequencyParameter 3
batchParameter 3
yearParameter 3


Below is my saved search–>

var customrecord_cpa_annual_salary_calculatiSearchObj = search.create({
type: “customrecord_cpa_annual_salary_calculati”,
name: “custrecord_apd_pcm_sequence”,
summary: “GROUP”,
label: “Sequence”
name: “custrecord_cpa_amount”,
summary: “SUM”,
sort: search.Sort.ASC,
label: “Amount”

resultObj = [];
var saveSearchResult = customrecord_cpa_annual_salary_calculatiSearchObj.run()
saveSearchResult.each(function (item) {
obj = {}
obj.sequence= item.getValue({ name: “custrecord_apd_pcm_sequence”,
summary: “GROUP”,
label: “Sequence”});
obj.amounts= item.getValue({name: “custrecord_cpa_amount”,
summary: “SUM”,
sort: search.Sort.ASC,
label: “Amount”});
return true
return resultObj;


Beginner Asked on March 4, 2023 in SuiteScript.
Add Comment
2 Answer(s)


You are missing a comma after your first “AND”.



Intermediate Answered on March 6, 2023.
Add Comment

oops! Thanks Chris 🙂

Beginner Answered on March 6, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor