Lotus notes Agent configuration Help

Hello,I’ve set up an Agent that sends out an email as soon as a document was Edited/Modified.

I would like to add to the subject line automatically the person that changed the document

(Modified By field)

So it will look like this:

“Document was updated by (editor name)”

Thanks for help

Subject: Couple of ideas

In apps where I want stuff to happen when a doc is updated/saved, I force the user to use a ‘save’ button that has all the code I want executed baked in. In that situation, you can build a from/to/subject/body any way you like. The methods to force users to hit your button to save are documented elsewhere in this forum (faq of faq or search for ‘prevent save’).

If you can live without the name in the subject line but have a dead-bang easy solution, check out Audit Manager at OpenNTF.org. It allows you to set up an audit trail that includes an email to <name/group you want> when a doc is saved.

Subject: Lotus notes Agent configuration Help

lastEditedBy = doc.Authors(Ubound(doc.Authors))emaildoc.subject = |Document was updated by (| & lastEditedBy & |)|

Subject: RE: Lotus notes Agent configuration Help

Thanks,Is there also a way doing it using the agent existing formulas in the email configuration screen?

Subject: RE: Lotus notes Agent configuration Help

I need more info. I don’t know what you mean by email configuration screen. Are you referring to formula language version?

lastEditedBy = doc.Authors(Ubound(doc.Authors))

emaildoc.subject = |Document was updated by (| & lastEditedBy & |)|

lastEditedBy := @Right(@Authors; 1);

subject := “Document was updated by (” + lastEditedBy + “)”;

Subject: RE: Lotus notes Agent configuration Help

Hi Brian,I’m using this:

At the subject field I marked Formula.

Hope that it will help you to help me :slight_smile:

Tnx