Create Schedule by Script - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Create Schedule by Script (/showthread.php?tid=3786) |
Create Schedule by Script - DGrandes - 04.01.2022 Hi, I need to create a lot of schedules and I have not found to do it by script in the forum. Is that possible? Thanks!! RE: Create Schedule by Script - admin - 04.01.2022 It's possible to do via db queries. The easiest approach is to duplicate existing schedule and change the mapped object. I can provide an example if this works for you. RE: Create Schedule by Script - DGrandes - 05.01.2022 (04.01.2022, 16:21)admin Wrote: It's possible to do via db queries. The easiest approach is to duplicate existing schedule and change the mapped object. I can provide an example if this works for you. Ok thanks!! Could you provide me the example? RE: Create Schedule by Script - admin - 05.01.2022 Use this function to duplicate a scheduler. Arguments: 1. id - source scheduler ID 2. address - object to map the new scheduler to 3. name - new scheduler name (optional) Code: function copyscheduler(id, address, name) |