uidoc.FieldGetText

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.

Thanks in advance

AMJ

Subject: what exactly is the problem

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.

Subject: FieldGetText

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.

Thanks

Subject: Working as designed

On the Mail tab of the Location document you can tell it to stop on the first match. That is a global setting, though, so it may not be what you want.

Subject: you can try to add a domain

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.