You can automate the syncing of your IntelligenceBank content at a set interval by leveraging Sitecore's native task scheduler.
To set a sync task, go to System > Tasks > Schedules, and open the "auto sync intelligencebank accounts" item.
Under the Items field, specify the path to the IntelligenceBank Folder in the media library that is to be synchronized, i.e. /sitecore/media library/{{IntelligenceBank Folder Name}}.
If you have multiple IntelligenceBank Folder instances, and would like to sync several or all of them, simply separate each path by a pipe character (“|”). e.g. /sitecore/media library/{{IntelligenceBank Folder Name 1}}|/sitecore/media library/{{IntelligenceBank Folder Name 2}}.
Under the Schedule field, enter the following details:
- Start Date & Time
- End Date & Time
- Frequency
In the following order and format:
YYYYMMDDTHHMMSS|YYYYMMDDTHHMMSS|127|HH:MM:SS
What does 127 correspond to, and what can I update this value to?
In the schedule definition item, in the Data section, in the Schedule field, enter a parameters to control the schedule, separated by piple (“|”) characters. The first parameter indicates the start date for the schedule in yyyyMMdd format. The second parameter indicates the end date for the schedule in the same format, The third parameter indicates the days of the week on which to run the task. This basically works like a bit mask, where 1=Sunday, 2=Monday, 4=Tuesday, 8=Wednesday, 16=Thursday, 32=Friday, and 64=Saturday. So Monday through Friday is 2+4+8+16+32=62, while every day is 1+2+4+8+16+32+64=127. These values come from the Sitecore.DaysOfWeek enum. The fourth parameter is the minimum interval between invocations of the task in HH:mm:ss format.
Async field should be enabled.
In the schedule definition item, in the Data section, select the Async checkbox to cause the task to run asynchronously.
Auto remove field can be disabled.
In the schedule definition item, in the Data section, select the Auto Remove checkbox to cause Sitecore to remove the schedule definition item after invoking the task. This setting only comes into play after the expiration date defined in the Schedule field.
You will be able to track when the last sync occurred in the Last run field.
Comments
0 comments
Please sign in to leave a comment.