Lotus Notes @command script - resend to more users

Dear all,

I am running the following script under a “yes/approved” hotspot button, which runs perfectly in one of my emails, shown below. What it does is the following:

  • on click asks a question

  • resents the email (with history) to designated email address with the answer from the question above

What I need?

Email chain that will cover 3-4 people. If 1st presses “yes/approved” hotspot button it will automatically send the email to 2nd in line. if 2nd presses “yes/approved” it till automatically send to 3rd in line, etc.

Is there a way of updating this script so it will do this?

tmpMsg :=@Prompt([OkCancelEdit]; “IBM Resources”; “Are IBM resources involved in the delivery of this request?”; “”);

@Command([MailForward]);

@Command([EditGotoField];“EnterSendTo”);

@Command([EditInsertText];“email address here/UK/IBM”);

@Command([EditGotoField];“Subject”);

@Command([EditInsertText];"DPE Approval - Granted ");

@Command([EditGotoField];“Body”);

@Command([EditInsertText];"Is eSoft required for this RFS?: " + tmpMsg);

@Command([MailSend]);

@Command([CloseWindow]);

@Prompt([Ok];“Response”;“Thank you for your response, which has been sent to the task ID”)

Thank you for your ideas.

Subject: Lotus Notes @command script - resend to more users

Why not create a real workflow application, instead of a mail-based kludge?

Then you can record who approved what and when, for example. As well as many other functions.

Subject: RE: Lotus Notes @command script - resend to more users

What is a workflow application? Is it “easy” so to speak? Can I create it in Lotus Notes?

I am not a developer and I have no idea how workflow applications work or what it actually is. I managed to put this “easy” script together, but programming applications is a completely different thing.

Subject: RE: Lotus Notes @command script - resend to more users

A workflow application is basically an application where the document “flows” thorugh a number of statuses or steps.The concept is very easy, and Notes is extremely well suited for this kind of applications.

The easiest way is to add a status field. You can then use different way to change the status. It can be as easy as making the field a drop-down, where the user selects the proper status. But a more common way is to use action buttons that set the field to the proper value.

A very simple workflow application I wrote recently was a form letter library. A new document is created, and the status is set to “Draft”. The user creates the content, and can save the document as many times he/she wants. When the user is happy with the result, the button “Read for review” is pressed, This button set the status to “Review” and also send an email to the manager of the user (pulled from Domino Directory with a notification and a doc link to the document.

The manager opens the document, reviews the content and press either the action button “Approved” or “Declined”.

Declined sets the status backl to “Draft” and sends a notification to the original creator.

Approved sets the status to “Approved”. Only approved form letters are visible from the application where users create letters based on these form letters.

I also have an action button called “Archive”, this chnages the status to “Archived”, which of course removes it as selectable in the application, without deleting it.

You can of course make it as complicated as you like. :slight_smile:

Subject: RE: Lotus Notes @command script - resend to more users

Hi, could you send me this workflow application so I can see how it works and try to adjust it? This could actually solve my problem.

Thank you.

Subject: RE: Lotus Notes @command script - resend to more users

It is not a specific application I am describing,but what a workflow application is. I have probably a few dozen workflow applications here, for different things…

You can read more here: Workflow application - Wikipedia

Since you said earlier that you are not a developer, you may want to talk to your in-house Notes developer. Any developer knows what workflow applications are, and anyone who been developing for Notes for more than a week probably have created at least one.

But if you need something created for you, contact me offline (texasswede@gmail.com) and if you provide me with enough information about the application I can provide you with a quote.