Posted By mikaelldnn on 10 Dec 2020 09:35 AM
This all works perfectly and I can update the SchedulerHistory item with the following code.
schHistInfo.NextStart = startDate
SchedulingController.UpdateScheduleHistory(schHistInfo)
SchedulingController.ReloadSchedule() ' Not sure what this does?
@Sebastian: It looks like he is indeed using the API and not a direct database call already.
@Mikael: I think this mostly looks correct, but if you're using DNN 9.2+ it should be altered a bit.
First, create an instance of the schedule item from the API, then update just the properties you need. Finally, call the method below.
SchedulingProvider.Instance().UpdateScheduleWithoutExecution(updatedItem);