Hi all,I am written a schedule agent.Some time it is running well some time it is not running.
here is my code…
1:=time1;
t2:=@adjust(time2;0;0;0;0;0;10);
t3:=@Time(@Now);
@If(t3<t2;@Prompt ([Ok];“test”;“true”);@Prompt ([Ok];“test”;“flase”));
@Prompt ([Ok];“test”;@Text(t1));
@Prompt ([Ok];“test”;@Text(t2));
@Prompt ([Ok];“test”;@Text(t3));
@If(status=“1” &t3>t2 ;@Do(@MailSend(“Rajeev M Thakur/BNG/ULI”;“”;“”;“1st test”;“”;“Remainder about your Project”;[IncludeDoclink]);@SetField (“status”;“2”));“”);
t4:=@Adjust (t2;0;0;0;0;0;20);
@If(status=“2” &t4>t3;@Do(@MailSend(“Rajeev M Thakur/BNG/ULI”;“”;“”;“2nd test”;“”;“Remainder about your Project”;[IncludeDoclink]);@SetField (“status”;“3”));“”);
@If(status=“3”;@SetField (“status”;“close”)&@MailSend(“Rajeev M Thakur/BNG/ULI”;“”;“”;“3rd test”;“”;“Remainder about your Project”;[IncludeDoclink]);“”);
any idea…Its is reaaly strange…
thnxs
Subject: some time running well some time not strange
rajeev,
What do you mean by not running??? What messages are you getting in the Notes Log? Does the agent run when you try to run it manually?
@Prompt will not work in a scheduled agent
Mike
Subject: RE: some time running well some time not strange
Hi poole,i means agent run and send the mail after 10 min but some time it not sending the mail after 10 min.
My requritment is
1)when i send the mail at the same time status became “1”.
2)then after 10 min it send the another mail and change the status to “2”.
3)When status become “2” then after 10 min after it send the mail and change the status"3".
I means mail should be send after 10 min compare to change the status.when status change at that moment to next 10min it will stay and then send the mail.
It is working but some time not sending the mail.Is any logic problem or else.Pls let me know…You need any thing more to understand…
Subject: RE: some time running well some time not strange
What is the schedule of your agent??