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 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.
Does the sync apply to all IntelligenceBank accounts on the Sitecore instance?
All Account root items should be specified in Items field.
In the schedule definition item, in the Data section, in the Items field, you can specify a list of items to pass to the command, separated by pipe (“|”) characters. Alternatively, you can enter a Sitecore query (without the query: prefix), but remember that the Query.MaxItems setting in the web.config file applies to this query.
Comments
0 comments
Please sign in to leave a comment.