I have a home-grown workflow application that is used for requesting system access for users. If the user is a temporary user (consultant) we need to get that re-approved every month.
The system finds the requests that are expiring soon and generates a document (document A) - from that document the manager can indicate that the person’s access should be removed - or create a request to extend that person’s access (document B).
This process works great for most people but for a handful of people, it’s not working.
The sample code below shows that when we generate the ‘extension’ request (document B), we also go back to the ‘this is expiring’ notice (document A) and close that window. Then the user only has to deal with the ‘extension’ request. The problem happens for a handful of users - every time they run this process it creates Document B, but when it tries to close the extra windows, it closes document B, too.
Here is the code. It’s in a button on Document A, which is in the database “informationservices\security\security.nsf”. (document B gets created in a different database).
@If(@IsDocBeingEdited; “”; @Command([EditDocument]));
FIELD ExtendTime := “Y”;
FIELD Encrypt := “”;
FIELD SaveOptions := “1”;
@Command([FileSave]);
UNID123 := @DocumentUniqueID;
FIELD oldFormID := @Left(formid; “REM”) + “EX” + @Right(formid; “REM”);
@If(
@Contains(@UpperCase(@DbTitle); “TEST”);
@Command([Compose]; @ServerName : “kohlsglobal\forms\49testforms.NSF”; oldFormID);
@Command([Compose]; @ServerName : “kohlsglobal\forms\corpforms.NSF”; oldFormID));
@Command([FileOpenDatabase]; @ServerName :“informationservices\security\security.nsf”);
@Command([OpenView]; “All by Doc ID”);
@Command([OpenDocument];“”;@Text(UNID123));
@Prompt([Ok]; “Create Extension”; “Fill out Extension form”);
@Command([FileCloseWindow]);
@Command([FileCloseWindow]);
@Command([FileCloseWindow])
As I said, the process works for most users all the time. I’ve tried logging in as one of those ‘problem users’ - from my 2 PCs - and the process always works for me.
We have noticed that if you have a lot of other Notes documents open when you try to run this process it can run into issues - I think it loses its place re: what windows are which. But when we have these ‘problem users’ close all other notes documents and run the process they always run into this issue.
Any ideas on how to troubleshoot this or ideas on possible causes would be great.