You can execute asynchronous system operations one time or on a recurring basis by using a recurrence rule. Use the AsyncOperation.RecurrencePattern attribute to specify the recurrence rule. This property is included in the request classes of the IOrganizationService messages that submit asynchronous jobs, such as bulk delete, or bulk detect duplicates. It is also included in the entities that represent asynchronous operations, such as the AsyncOperation (system job) entity.
Use the following format to set the AsyncOperation.RecurrencePattern attribute.
Recurrence pattern: “FREQ=MONTHLY;”
Frequency of job execution: Once a month
Recurrence pattern: “FREQ=WEEKLY;”
Frequency of job execution: Once a week
Recurrence pattern: “FREQ=DAILY;”
Frequency of job execution: Once a day
Recurrence pattern: “FREQ=HOURLY;”
Frequency of job execution: Once an hour
Note: A complete format for a recurrence rule is described in the RFC2445 Internet standard (Internet Calendaring and Scheduling Core Object Specification).
You can specify how frequently you want to repeat the recurrence rule by using an INTERVAL part of the rule. For example, to execute a job every three days, use the following format: “FREQ=DAILY;INTERVAL=3;”. The INTERVAL is an optional part of the recurrence rule. If you do not specify INTERVAL, it is set to 1.
To run an asynchronous job without recurrence, set this property to a value that is specified in the AsyncOperation.RecurrencePattern property programming reference topic for a particular message request class or an entity.
To specify the start time of the job execution, use the AsyncOperation.RecurrenceStartTime property or the StartDateTime property in the message request classes or in the records that represent asynchronous operations. If the property is not set, the start time is set to the value that is contained in the DateTime.Now property.
My above blog is based on Microsoft’s Official information.
I hope this blog about ‘Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online – Recurrence Pattern in Asynchronous Job Execution’ was informative. Please feel free to leave your comments.
Comments
I do believe all the ideas you have offered in your post. They are very convincing and can certainly work. Still, the posts are very short for novices. May just you please prolong them a bit from next time? Thank you for the post:
JACOB http://www.net-ict.be/