Schedule Agent to send mail depending upon status every 48 hrs

Hi,

Please any body help to create schedule agent to send reminder mail every 48 hrs depending upon the status i.e pending with the users with the status

Subject: Schedule Agent to send mail depending upon status every 48 hrs

Schedule the agent to run everyday. Update a field in a profile or keyword document say agentran initially to 0.

if the field value is 0, then set the field value to 1 and write your code and exit sub.

If the field value is 1, then set the field value to 0 and exit sub

Subject: RE: Schedule Agent to send mail depending upon status every 48 hrs

Thanks,

I tried. But is working with event drivven and not working for scheduled.

Subject: RE: Schedule Agent to send mail depending upon status every 48 hrs

Try the LastRun property of the NotesAgent class. If you use this with the TimeDifference method of the NotesDateTime object you can tell if the agent ran yesterday (Today-1). Schedule the agent to run daily and check to see if it ran yesterday. If it did then exit otherwise…

Hope this helps

Pete