: macro = |@ReplaceSubstring(@ReplaceSubstring(@Name([Abbreviate]; @UserName); " "; "_"); "/"; "-")| dummy = Evaluate(macro) 'Evaluate is used to skip server name uname=dummy(0) key = dummy(0) & "_" & "OPEN"
If you are running the agent over the Web, this is actually fairly simple and you won't need Evaluate. You simply use the Remote_User CGI variable. A simple LotusScript example follows:
Dim nsCurrent as New NotesSession Dim ndocWeb as NotesDocument Dim strUser as String Set ndocWeb=nsCurrent.DocumentContext strUser=ndocWeb.Remote_User(0)
Dig Deeper on Domino Resources - Part 4
Related Q&A from Dave Hatter
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.