Today I was working on a method to create a scheduled async job for CRM 4.0. I needed to allow the calling method to pass in the frequency of how often to run this job and I wanted to allow for running only once. I found a few sites, including Microsoft's that made reference to a way to make an async job run only once, but noone said how. The frequency property is required on the call and it only has values that I could find such as hourly, daily, weekly and such.
To make a long story short. I found another optional property on the rrule called Count. So.... I set the frequency to Hourly and the count to 1 and I got the desired affect. Hope this helps someone :)
Comments