I am new to domino development so any help is most appreciated.
I created a workflow apps which uses a form called form request. All aspect of the Apps works fine except for the reminder agent.
In the workflow apps,there are two section in the form with section control access based on user roles.
In one section i have a field called vpststus. The field can either be “approved”, “rejected” or “”.
In the second section i have a field called itsecststus. The field can either be “approved”, “rejected” or “” also.
WHAT I WANT TO ACHEIVE ARE:
if vpstatus =“” send reminder to vpuserrole when a scheduled agent runs.
If vpststus =“approved” and itsecstatus =“” send reminder to itsecuserrole or a username or group for instance when a different agent or the same runs.
I want to acheive this by creating an agent that runs on a schedule to send notification based on the field status.
QUESTION
How do I write an agent using formula language to send notification based on the field status of vpstatus and itsec status when this agent runs.
Subject: reminder agent
Doing it with formula could be tricky since you want to send the mail to the people that has a role. Using Lotusscript you could loop through the ACL to get the names, ACLEntry.IsRoleEnabled(“[vpuserrole]”). Using formula you have to add the people to some kind of configuration document. Anyway the code for the agent could look something like this.
SELECT vpstatus =“” | (vpstatus=“approved” & itsecstatus=“”);
@If(vpstatus=“”;@MailSend(vpuserrole…);@MailSend(itsecuserrole;…))
Subject: RE: reminder agent
Thanks Mats. I will try your code in the test environ now.
I wrote a code in formula and this worked but when i tried to include doc link it stopped working, I can’t see what i did. Have a look and advice why the code doesn’t send an email reminder with doc link as well as email are not sent to the user.
Below is the code
@If(vpstatus = “” & itsecstatus = “” & Departmenta !=“”;
@MailSend(“emmanuel maduakonarn”; “”; “”; “Reminder - This is a reminder that you have a task due in the Priviledge user Rights Database.”; “”; “Please click on the yellow link to access the Priviledge User Right Database and approve this Request >>>>>>>>>>”;[IncludeDoclink];“”);“”);
Subject: RE: reminder agent
Thanks Mats.
I did try your code with a few modification to include doc link and this work just fine.
Out of curiosity you mentioned something about configuration document settings are required here because i am not sure what that means or is it in reference to domino admin configuration documents.
Subject: RE: reminder agent
I assumed when you talked about roles that you ment the roles in the ACL. Since you cant find out what people that use a specific role in the ACL using formula i ment that you could add a profile document to the database and get the members from that instead.