RE: Scheduled Script
I am working on a script that runs when someone clicks a button and populates a sublist based on a custom record. I need to automate that to run early morning at a given time and run that script for all new item fulfillments for a specific customer. The current script is based on the opened item fulfillment. How can I create a scheduled script to run for criteria? Any help or suggestions would be greatly appreciated.
When you say “populate a sublist based on a custom record”, I assume you mean to just create custom records. Sublists are generally just searches on records. Assuming that is the case, if you need the custom record to be created live whenever new fulfillments are made, you can trigger the scheduled script with
N/task from a userEvent script on item fulfillments. I don’t understand why you would need it to run on a schedule if you need the sublist/custom records to be created immediately, though.