Resolving Names

  • Thread starter Thread starter Craig
  • Start date Start date
Status
Not open for further replies.
C

Craig

Internal to my organization I have been using the Outlook Object model for a

while. But recemtly I tried one of my Outlook addins on an outside system

and found that resolving names was not working as I have come to expect. In

the following code I get a very big string with regular dashes like some

kind of system ID after the "recipients/cn=".

XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXX

Both servers are 2007 and clients are 2003.

The below code works fine on my system and I get the username, but not on

the outside system.

Eml = objOutlook.Session.CurrentUser.Address

I am also getting the same issue when I use resolve.

Thanks for shedding any light on this for me.

Craig
 
What type of email address is it? If you use Session.CurrentUser.Type what

does it show?

What type of mail server is this other server. is it Exchange 2007?

"Craig" <cloidhamer@hotmail.com> wrote in message

news:OPG0pxw4JHA.1372@TK2MSFTNGP05.phx.gbl...
> Internal to my organization I have been using the Outlook Object model for
> a
> while. But recemtly I tried one of my Outlook addins on an outside system
> and found that resolving names was not working as I have come to expect.
> In
> the following code I get a very big string with regular dashes like some
> kind of system ID after the "recipients/cn=".
> XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXX

> Both servers are 2007 and clients are 2003.

> The below code works fine on my system and I get the username, but not on
> the outside system.
> Eml = objOutlook.Session.CurrentUser.Address

> I am also getting the same issue when I use resolve.

> Thanks for shedding any light on this for me.

> Craig

>
 
They are using Exchange 2007. When I run Session.CurrentUser.Type I get "1"

when they run it they also get "1". They are running a Citrix envrionment

would that cause this issue?

If I run this VbScript.

Dim Ol,Ns

Set Ol = CreateObject("Outlook.Application")

Set Ns = Ol.GetNamespace("MAPI")

msgbox (ol.Session.CurrentUser.Name) & chr(13) +

ol.session.CurrentUser.Address

I get this output:

Craig Loidhamer

/o=UMS/ou=First Administartive Group/cn=Recipients/cn=cloidhamer

When I have them run it they get:

Gary K

/o=ZMS1/ou=First Administartive

Group/cn=Recipients/cn=17B4A58C-3E16404B-8625682E-XXXXXX

Thanks again for your help.

Craig
<kenslovak@mvps.org> wrote in message

news:%239wQFa44JHA.480@TK2MSFTNGP06.phx.gbl...
> What type of email address is it? If you use Session.CurrentUser.Type what
> does it show?

> What type of mail server is this other server. is it Exchange 2007?

> >

>

> "Craig" <cloidhamer@hotmail.com> wrote in message
> news:OPG0pxw4JHA.1372@TK2MSFTNGP05.phx.gbl...
> > Internal to my organization I have been using the Outlook Object model
> > for a
> > while. But recemtly I tried one of my Outlook addins on an outside system
> > and found that resolving names was not working as I have come to expect.
> > In
> > the following code I get a very big string with regular dashes like some
> > kind of system ID after the "recipients/cn=".
> > XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXX
>

>> Both servers are 2007 and clients are 2003.
>

>> The below code works fine on my system and I get the username, but not on
> > the outside system.
> > Eml = objOutlook.Session.CurrentUser.Address
>

>> I am also getting the same issue when I use resolve.
>

>> Thanks for shedding any light on this for me.
>

>> Craig
>

>>

>
 
Something seems screwy about how the Exchange server is configured. I would

expect to see "EX" for any Exchange DN type address, not a "1". And that DN

that's being returned looks like it's a folder or mailbox GUID and not an

Exchange alias. I'd have an admin look at the configuration for Gary K in

ADUC and see what's up.

Citrix I'm not sure about.

"Craig" <cloidhamer@hotmail.com> wrote in message

news:uBmksy54JHA.3476@TK2MSFTNGP05.phx.gbl...
> They are using Exchange 2007. When I run Session.CurrentUser.Type I get
> "1" when they run it they also get "1". They are running a Citrix
> envrionment would that cause this issue?

> If I run this VbScript.
> Dim Ol,Ns
> Set Ol = CreateObject("Outlook.Application")
> Set Ns = Ol.GetNamespace("MAPI")

> msgbox (ol.Session.CurrentUser.Name) & chr(13) +
> ol.session.CurrentUser.Address

> I get this output:
> Craig Loidhamer
> /o=UMS/ou=First Administartive Group/cn=Recipients/cn=cloidhamer

> When I have them run it they get:
> Gary K
> /o=ZMS1/ou=First Administartive
> Group/cn=Recipients/cn=17B4A58C-3E16404B-8625682E-XXXXXX

> Thanks again for your help.

> Craig
 
After looking at it he saw that all new Exchange Users had the correct

alias, but all the users that were migrated from Exchange 2003 had the IDs.

The Alias field in Exchange has the correct name. Is there something in AD

that might have not been update correctly?
<kenslovak@mvps.org> wrote in message

news:Obv6Ww64JHA.480@TK2MSFTNGP06.phx.gbl...
> Something seems screwy about how the Exchange server is configured. I
> would expect to see "EX" for any Exchange DN type address, not a "1". And
> that DN that's being returned looks like it's a folder or mailbox GUID and
> not an Exchange alias. I'd have an admin look at the configuration for
> Gary K in ADUC and see what's up.

> Citrix I'm not sure about.

> >

>

> "Craig" <cloidhamer@hotmail.com> wrote in message
> news:uBmksy54JHA.3476@TK2MSFTNGP05.phx.gbl...
> > They are using Exchange 2007. When I run Session.CurrentUser.Type I get
> > "1" when they run it they also get "1". They are running a Citrix
> > envrionment would that cause this issue?
>

>> If I run this VbScript.
> > Dim Ol,Ns
> > Set Ol = CreateObject("Outlook.Application")
> > Set Ns = Ol.GetNamespace("MAPI")
>

>> msgbox (ol.Session.CurrentUser.Name) & chr(13) +
> > ol.session.CurrentUser.Address
>

>> I get this output:
> > Craig Loidhamer
> > /o=UMS/ou=First Administartive Group/cn=Recipients/cn=cloidhamer
>

>> When I have them run it they get:
> > Gary K
> > /o=ZMS1/ou=First Administartive
> > Group/cn=Recipients/cn=17B4A58C-3E16404B-8625682E-XXXXXX
>

>> Thanks again for your help.
>

>> Craig

>
 
I'm not an Exchange admin, my guess is a bad migration, but that's just a

guess. I'd post about that in an Exchange admin newsgroup.

"Craig" <cloidhamer@hotmail.com> wrote in message

news:%23lq%23KM84JHA.4404@TK2MSFTNGP04.phx.gbl...
> After looking at it he saw that all new Exchange Users had the correct
> alias, but all the users that were migrated from Exchange 2003 had the
> IDs. The Alias field in Exchange has the correct name. Is there something
> in AD that might have not been update correctly?
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
D Prevent Outlook from resolving incomplete contact when clicking send Using Outlook 2
M Resolving mil.mail domain Using Outlook 4
M TO field on Read Page not resolving Using Outlook 3
J "Outlok like" control - users(contacts) resolving Outlook VBA and Custom Forms 11
M Folder names - rich text Using Outlook 6
N Trouble with server names Using Outlook 1
R Adding Userform Dropdown List items from names of subfolders on network drive Outlook VBA and Custom Forms 10
O Same email address, same person, names in so many ways Using Outlook 4
J Names in sent items suddenly show as Bob Smith (bobsmith@sample.com) Using Outlook 3
M How to export Voting Results with user names and their responses Outlook VBA and Custom Forms 13
R Add 'Company' to Select Names Form Using Outlook 1
N Rule for "on behalf of" - with changing names Using Outlook 2
C Outlook Mobile app email order randomized and display names stripped Using Outlook 6
M Using field names to capture a data element Using Outlook 0
D Overlapping Names in Folder List Using Outlook 4
L Hubby and Wife names in email address Using Outlook 1
T exporting contacts names reversed in CSV file Using Outlook 8
J Outlook 2013 when clicking To in a new email show Company names Using Outlook 0
D Change First/Last Order of Contact Names (O 2016) Using Outlook 0
Diane Poremsky Replace Display Names with Email Addresses Using Outlook 0
N Importing Google contacts from CSV file removes recipient names in autocomplete list Using Outlook 0
Diane Poremsky Add Attachment Names to Message Before Sending Using Outlook 0
F I want to migrate Outlook journal to excel including contact names Using Outlook 10
Diane Poremsky Log Messages and Attachment Names Using Outlook 2
C Outlook 2007 Select Names Default columns Using Outlook 3
Aussie Looking for Outlook macro to Copy Recipient Names into Email Body Outlook VBA and Custom Forms 3
R VBA to count email Subject names Using Outlook 1
D Inconsistent order of names displayed Using Outlook 7
J Swedish characters in Outlook folder names Using Outlook 0
J autocomplete in "To" field does not work for display names Using Outlook 8
R BCM lead form layout field names not being displayed Using Outlook 0
G Address names auto complete not working - Outlook 2007 version Using Outlook 1
R contact names does not display in compose emails using Outlook2013 Using Outlook 3
N Contact Groups - names keep changing from Contacts to AddressBook Using Outlook 5
A BCM 2010 account names import in reverse order BCM (Business Contact Manager) 4
P Different names for the same email address Using Outlook 1
J How To Change Font Size For Folder Names on Navigation Pane in Outlook 2013 Using Outlook 1
I Address book contacts not listed in "Select Names:Contacts" window Using Outlook 2
T Click "A" to see all email from people with names starting with A... etc Using Outlook 3
S Inbox names appear greyed out Using Outlook 3
williamlambton Filter which removes Display Names from incoming emails. Using Outlook 2
U Address Book Issue - Old or incorrect address shows up on some user names Using Outlook 2
D Contacts as default in Select Names dialog Using Outlook 1
W Names reversed in Full Name field Using Outlook 4
R how to copy a list of email contacts and paste them only as names (not names + email address) Using Outlook 12
T Autocomplete, although enabled, does not complete names in TO: Using Outlook 4
J Select Names Dialog Box Outlook VBA and Custom Forms 16
R multiple display names Using Outlook 6
S Why are different email names displayed Outlook VBA and Custom Forms 2
M How to handle Outlook Contacts who have multiple Names BCM (Business Contact Manager) 1

Similar threads

Back
Top