In the related content article, we showed how to keep your automations under version control using the automation blocks. In this article, we will go more in detail about the usage of the blocks.
Content:
Create/Update automation block
![Marius_Nuca_0-1662634123632.png Marius_Nuca_0-1662634123632.png](https://community.qlik.com/t5/image/serverpage/image-id/88629iD6A9CC964B0D610D/image-size/medium?v=v2&px=400)
The only two required input parameters are the name of your new automation and the workspace of the automation. The term workspace refers to the canvas when opening an automation and contains all the blocks.
While it may be possible to send a JSON object containing the whole workspace (for example, opening an automation, downloading the automation as a file, and then opening the file, copying its contents, and pasting the information in the parameter) we strongly suggest against it. Instead, it is easier to just use the "Get automation" block and simply click on the workspace parameter of the returned object from that block to give as an input parameter for both the create and update automation blocks.
![Marius_Nuca_1-1662634533461.png Marius_Nuca_1-1662634533461.png](https://community.qlik.com/t5/image/serverpage/image-id/88630iB489BB732C5A9A87/image-size/medium?v=v2&px=400)
![Marius_Nuca_2-1662634615430.png Marius_Nuca_2-1662634615430.png](https://community.qlik.com/t5/image/serverpage/image-id/88631iA430397D0E2E5D3A/image-size/medium?v=v2&px=400)
The same can be done for the schedules input parameter:
![Marius_Nuca_3-1662634687979.png Marius_Nuca_3-1662634687979.png](https://community.qlik.com/t5/image/serverpage/image-id/88632iA20C703C7C72C000/image-size/medium?v=v2&px=400)
Update automation schedule
For finer control over the changes in an automation's schedule, there is a block called "Update automation schedule" that can be of immense help.
![Marius_Nuca_5-1662634964206.png Marius_Nuca_5-1662634964206.png](https://community.qlik.com/t5/image/serverpage/image-id/88634i67080C9591D0DE8A/image-size/medium?v=v2&px=400)
Choosing the "automation id" input parameter is easily done with the do lookup functionality which will show a dropdown of all automations you have access to in the tenant. "Schedule Start" and "Schedule Stop" expect a datetime value in the format yyyy-mm-dd hh:mm:ss .While the "Schedule Stop" parameter is not required, we expect a date with a value higher than "Schedule Start".
When it comes to filling in the timezone interval, the allowed values can be found here .
The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.
Related Content
Qlik Application Automation: How to keep your automations synced over multiple tenants