Trevor McLean
02/05/2019, 6:18 PM"type":"error.SuiteScriptError","name":"SSS_INVALID_ATTACH_RECORD_TYPE","message":"Attaching of record type task to lead is not supported."
erictgrubaugh
02/05/2019, 6:20 PMattach / detach
enumerates some acceptable attach operationserictgrubaugh
02/05/2019, 6:20 PMreptar
02/05/2019, 6:23 PMerictgrubaugh
02/05/2019, 6:24 PMmap
or reduce
erictgrubaugh
02/05/2019, 6:25 PMreturn
will stop processing the current element in those stages though, so you can still set up your conditions to "do nothing" and return where appropriateerictgrubaugh
02/05/2019, 6:25 PMehcanadian
02/05/2019, 6:36 PMehcanadian
02/05/2019, 6:37 PMjkabot
02/05/2019, 6:38 PMcreece
02/05/2019, 6:45 PMcreece
02/05/2019, 6:46 PMcreece
02/05/2019, 6:48 PMjkabot
02/05/2019, 6:49 PMreptar
02/05/2019, 6:49 PMcreece
02/05/2019, 6:49 PMlarry
02/05/2019, 6:56 PMlarry
02/05/2019, 7:01 PMdbaghdanov
02/05/2019, 7:57 PMfilters
vs filterExpression
.
the docs say there's a filterExpression
property. But instead you pass your filter expression into the filters
property.
search.create({
type: "my_custom_type",
filters: [["customfield", "is", "ok"], "and", ["otherfield", "is", "finetoo"]]
But this will not work (well it will, it'll just return all your records)
search.create({
type: "my_custom_type",
filterExpression: [["customfield", "isnot", "ok"], "and", ["otherfield", "is", "notfinetoo"]]
creece
02/05/2019, 8:11 PMcreece
02/05/2019, 8:12 PMcreece
02/05/2019, 8:12 PMreptar
02/05/2019, 9:18 PMcreece
02/05/2019, 9:21 PMreptar
02/05/2019, 9:23 PMreptar
02/05/2019, 9:23 PMcreece
02/05/2019, 9:23 PMcreece
02/05/2019, 9:23 PMalien4u
02/05/2019, 9:24 PMalien4u
02/05/2019, 9:24 PM