I am wanting to run a service that will query Trading Networks, setting the query start date to the last time the service was run. I was going to schedule the service and use the last run date/time that the scheduled service last ran, however realised that when the scheduled job was run, the last run date time would be zero, as the scheduled job would be running!
As I see it, if there is not another way, i will need to write the current date/time to a file when the service is run and have it read the file on subsequent runs to obtain the last run date/time.
Is there a simpler way to achieve this desired result?