When I use uidoc.FieldGetText to pull a name from a field on a form to send an e mail I encounter a problem if the name appears in both the local address book and the server address book (the name may have different e mail addresses in each address book).
Is there anyway around this, am I using the correct code here, I normally use vb so sorry if I am missing something basic here.
uidoc.FieldGetText will only take information from the current uidoc object - so it will take whatever is already in that field. You need to see how the field is populated.
Ooopps, sorry. The problem is it keeps finding multiple matches for the name, even if the name is the same but the e mail address is different in each adress book.
I persume you fetch notes names. If it is add @Domain (your Notes-Domain) after the fetched text. If you’re working in one Notesdomain this should do the trick.