How do you automate a mass update to run multiple ...
# suitescript
i
How do you automate a mass update to run multiple times a day ?
s
Copy code
To set up a schedule for a mass update:
On a mass update page, click the Schedule subtab.

Enable the Run Update According to Schedule option.

Select the interval at which you would like to run the mass update, or click Single Event to run the mass update one time only.

As you select each interval, additional options are displayed for you to select. For example, if you select Weekly Event, you then can select individual days of the week on which to run the update.

Select a series start date. This is the first day on which the mass update is run.

Select an end date in the End By field or check the No End Date box to continue running the mass update indefinitely.

Define other characteristics of the mass update and save it. (See Defining a Mass Update .)

You must save a mass update for its schedule to take effect. After you have saved a scheduled mass update, it is listed at Lists > Mass Update > Site Management Tools > Saved Mass Updates, with its recurrence displayed in the Schedule column.

After you save a scheduled mass update, you can review information about the times it was run, in history columns on the mass update page's Schedule subtab. These columns include the date, user, and count of records updated for each time the mass update was run.
i
duuuh! thanks!
and if i want it to run multiple times a day?
s
Theres a repeat every on there...
b
you are doomed, use a script or workflow instead
i
but for example if I want it to run 5 times a day do I put 0.2?
No i cant do that haha
ok, what I think I must do is create a schedule script, where we call that mass update, because the mass update doesnt have the option to be run every X hours but the schedule does
b
i tried to crush your hopes quickly... the long way around is finding a way to trigger a mass update via script
i
c’mon! I was just looking at it ahaha
wait Im confused, why is not N/task?
b
i know of no way to trigger a mass update from a script
the usual tool for those kind of things is N/task
mass update is not one of the available tasks
you should skip the mass update entirely and do the work in a script or workflow
i
I see, yeah you are right there is no mass update on the task u.u
s
Mass updates are usually pretty simple, just do whatever it is doing in the scheduled script or map/reduce instead.