I have a querysave script that fires off a memo fine unless the user has a duplicate name in their addressbook.
The SendTo name is pulled from a field with the recipients name in.
Is there an easy way using lotusscript to change this name to the notes name format name/ou/o??
This is my code:
'Compose Memo to manager including doclink memo.Form = "Memo"
memo.SendTo = doc.GetItemValue("Approver")
memo.Subject = "Approval Required"
memo.SaveMessageOnSend = False
'Send the memo
Call memo.Send( True )
Any help appreciated
Subject: Send Memo Problem
Not sure but NotesName object should be able to do this or else use evaluate() to use @name
Subject: RE: Send Memo Problem
FYI - evaluate will not build higher but it will trim down. For example:
@Name([CN]; “CN=John Doe/OU=Sales/O=Acme”) will result in “John Doe” but
@Name([Abbreviate]; “John Doe”) will not build the abbreviated name for you, it will just return “John Doe”.
Subject: Send Memo Problem
Is there an easy way? depends on your idea of easy. You can do a lookup to the address book and grab the canonical name of the approver. You can also try adding your domain name to the end of the approver. This should supress the mailer from trying to resolve the duplicate at the client
memo.SentTo = doc.GetItemValue(“Approver”) & “@ACME”