Can i run a operation advisor or a Operation Participant without a Save operation ?
Hi,
I am working on a requirement where i need to trigger a plugin based on a particular date. Suppose in my code i have set the plugin date of execution on 1st September . Then on 1st September my plugin should get triggered automatically and execute as per the code written in plugin. So is there a way to achieve it ?
Accepted answer
You would need a different kind of extension an example would be an asynchronous task: https://rsjazz.wordpress.com/2015/10/16/due-date-notifier-an-asynchronous-task-example/
You will have to manage the triggering yourself.
Comments
Thank You ! Ralph
Is it possible to achieve it without any user action like save. As per requirement if todays date matches with the date coded in the plugin then the plugin will execute automatically without any save operation
Consider looking at the link it explains how this works. Asynchronous tasks can run on a schedule or frequency. The task would use queries or some other mechanism to find elements to work on. It can then do something. E.g. it could change some data.
I have not tried this, but you could try to use the API to act on the work items.
Another option would be an external tool that runs every now and then, queries work items and modifies/saves them if needed.