While the Export options are ideal for manual ad-hoc exports, the Scheduled jobs can do essentially the same things – according to a fixed scheme, and without human interaction.
To set up a scheduled job for a document, first you will need to save it as a document. If the document is saved and open, you can go to the File menu to Schedule the document.
This will open a new tab in the Designer client with all the Scheduled Job's properties.
Click the 'Edit' (Pencil) button of a property to edit the property.
One of the central properties of a Scheduled job is the Schedule property. Here, you can set up when and how often a document should be distributed.
- By time (cube process optional). This is the default setting by which you simply specify when and how often you want this job to run.
- On cube process. Choosing this option, you will also need to select at least one cube that needs to be processed before the job will run. Click the text line “(no cubes selected)” to select one or more cubes. The job will run every time the cube is processed.
- Combination. You can also select the “By time” option and the “Only run when All of selected cubes have been processed”. In this way, you can prevent a scheduled job from sending out a report if the cube hasn’t been processed (i.e. data hasn’t been updated) since last time the scheduled job was run.
The Timeout option lets you configure a custom timeout for your scheduled job. This can be useful to prevent a failing scheduled job from taking up system resources any more time than necessary. If set to '0', the default timeout is 12 hours. The default timeout can be changed in the Settings. xml file, see this article: Scheduled jobs - timeout options
With the Source property you can change the source document if needed. You can even select multiple documents to be handled by this single scheduled job.
In the Source property you also have an option to change the export filename.
Notice the “Use variables” option that will add variables such as dates and timestamps to your file names, if needed.
The Format property lets you decide the format of the scheduled job’s output. For dashboards it will typically be an image format, but you may also choose HTML and PDF.
On the delivery property, the most commonly used option will probably be to send things by Email. You can add multiple email addresses in the “To” field – just separate addresses with a semicolon. The “From” field is only necessary if you want the mail to appear coming from a specific address – otherwise, it will appear coming from the TARGIT server.
One of the other delivery options, the Folder option, is a way to update or archive a document on a physical hard drive rather than sending it by email.
The “Default” option you may see there will likely point to the C:\ProgramData\TARGIT\ANTServer\Exported Reports location on the server where your TARGIT Server is installed.
If you click 'Export' in the path, you also have options for assigning any of your Shared folders (i.e. Shared folders in the TARGIT client) as your output destination.
The list of scheduled jobs is available from the Start menu:
From the list, you can see job status and you can edit jobs etc. Furthermore, right click a job to run it immediately:
The output, if exported to the Default folder, can be found here:
Comments
Hej Ole,
jeg synes ikke jeg har muligheden for at klikke af i "use parameters" i min Targit klient.
Kan det være versionsafhængigt ? Jeg er på 22.3.30003
Hi Morten,
In earlier versions (earlier than January 2025) the "use parameters" was part of the scheduling dialog.
See this article: https://community.targit.com/hc/en-us/articles/15976139685276-Scheduled-jobs-output-filename-with-parameters
BR / Ole
Hi Ole,
Thanks for the tip - it was useful and solved the first part of my problem.
Is it also possible to get the parameters or something similar working in the Subject Field when the report is beeing sent by email ? I tried but without any luck.
Hi Morten,
Variables/parameters in the subject field is only available from the January 2025 release. See the check box in the "Delivery" screenshot in the article above.
BR / Ole
Hi Ole,
Okay - what a pity that it isn't possible in older versions.
Yeah.
I guess you will need to upgrade to a newer TARGIT version - or go Cloud - to get access to all the new and nice features. :-)
Just in the last two on-prem releases, since January 2025, we have released more than 40 new features. If you want to stay up-to-date with new, exciting releases and features, I suggest you go and "Follow" the release articles. E.g., start here: https://community.targit.com/hc/en-us/articles/18297691914780-Release-Information-Overview
BR / Ole
Please sign in to leave a comment.