Good Video! You can edit savedSearch filters with this method: const indexOfSearch = search.filters.findIndex(object => { return object.name === 'internalid'; });
Thanks for the quick turnaround @@shobipersonal it worked as mentioned only having an error when running the scheduled version (ReferenceError: "require" is not defined) have you encountered this? is there a quick way to update the .js to correct this
Good Video!
You can edit savedSearch filters with this method:
const indexOfSearch = search.filters.findIndex(object => {
return object.name === 'internalid';
});
if(indexOfSearch >= 0) search.filters.splice(indexOfSearch, 1);
search.filters.push(n_search.createFilter({
name: 'internalid',
join: 'invoice',
operator: 'anyof',
values: record.id
}));
search.save();
Why mainline true in saved search? And how we can read data in that excel file using Suitscript?
is there a way to keep refreshing the data within the same file using the same script?
Keeping the same file name at same path will overwrite the data.
Thanks for the quick turnaround @@shobipersonal it worked as mentioned only having an error when running the scheduled version (ReferenceError: "require" is not defined) have you encountered this? is there a quick way to update the .js to correct this
@@daviddjkedbek-ultra need to check your code, how are you loading the libraries ? In script it should be define instead of require.
when I try the exact code it gives me error SSS_MISSING_REQD_ARGUMENT. Do you know how to resolve it
Share your code
how come you didn't include the code?
Sorry, didn't get you
if my result is more than a million rows then is that work?
Haven't tested, but it has file size limit as per file cabinet.