We have an action button for a work flow application that displays, via dialogbox, a form where users can select addressees as well as enter a subject and comments. Our sales people have extensive entries in their personal address books; contacts that will only reside in their local address book.
Users select recipients via a picture hotspot which calls: @Command([MailAddress] ; “SendTo” ; “CopyTo” ; “BlindCopyTo”). UI ( Select Addresses dialog box.) works fine in that as they select recipients, the selected entries are returned back to the form. We append a domain to each entry since we need to do some additional processing.
The problem is that the selected entry is later used by the code to send the email. However, since the @Command([MailAddress] is not returning the internet address, the delivery fails since it does not now how to route it.
For example, Salesperson Bob uses the application and clicks the action which displays the dialog box. Bob clicks on the picture hotspot which displays the Select Addresses dialog box. Bob selects his personal address book in the directory list box and then selects Customer Sally for the TO list. The name: Customer Sally is displayed in the To list box. Please keep in mind that Customer Sally’s internet address is Customer.Sally@customer.com.
Since the internet address is not returned from the Select Addresses, we receive a delivery failure since the script sent the mail to Customer Sally@pdf instead of Customer.Sally@customer.com@PDF.
Is there a way to force @Command([MailAddress] to return the internet address?
Is there some other way to accomplish this?
Additional items:
-
We have tested setting the recipient name lookup to Stop after first match - does not work
-
We have tested setting the recipient name lookup to Exhaustively check all address books - does not work
-
I know I can use @picklist (But not the [NAME] parm) to go look in their personal nab and return a certain column, but then we would need multiple hot spots
Keywords:
Script
LotusScript
Posted in N/8 forum as well