Hi, I am fairly sure there is an issue with searching for a comment creator:
The above errors saying the search value in null:
[400] validation: Filtering value is empty, make sure to provide a search value for all specified filters
If you change the search to last edited it works:
[08:51:12.543] Action execution started.
[08:51:13.041] Collected 1 records.
[08:51:13.043] Action execution succeeded.
If you change the search to a script block, then the non-working looks like:
{
{
let numCollected = 0;
// (0) assemble filters
const filters = [{
field_id: 361086,
field_type: 'SINGLE_USER',
match_type: 'equal',
values: [].map((item) => ({ value: item })),
type: 'contact',
}];
// (1a) retrieve records via the API
const { data: { records, cursor } } = await tape.Record.getManyFiltered({ appId: 38446, limit: 500, filters: filters, });
// (1b) keep track of num collected records
numCollected += records.length;
// (1c) update and push into collection variable
record_collection_team_members.push(...records);
// (2a) retrieve more records (page 2) via the API
const { data: { records: recordsPageTwo } } = await tape.Record.getManyFiltered({ appId: 38446, limit: 500, cursor });
// (2b) keep track of num collected records
numCollected += recordsPageTwo.length;
// (2c) update and push into collection variable
record_collection_team_members.push(...recordsPageTwo);
// emit success log event
}
}
and I would have expected something more like:
{
{
let numCollected = 0;
// (0) assemble filters
const filters = [{
field_id: 361086,
field_type: 'SINGLE_USER',
match_type: 'equal',
values: [record_comment_or_reply_created_by_name].map((item) => ({ value: item })),
type: 'contact',
}];
// (1a) retrieve records via the API
const { data: { records, cursor } } = await tape.Record.getManyFiltered({ appId: 38446, limit: 500, filters: filters, });
// (1b) keep track of num collected records
numCollected += records.length;
// (1c) update and push into collection variable
record_collection_team_members.push(...records);
// (2a) retrieve more records (page 2) via the API
const { data: { records: recordsPageTwo } } = await tape.Record.getManyFiltered({ appId: 38446, limit: 500, cursor });
// (2b) keep track of num collected records
numCollected += recordsPageTwo.length;
// (2c) update and push into collection variable
record_collection_team_members.push(...recordsPageTwo);
// emit success log event
}
}
so basically the filter values line from:
values: [].map((item) => ({ value: item })),
to
values: [record_comment_or_reply_created_by_name].map((item) => ({ value: item })),
I hope that makes sense