Getting Email Address from address book

Hi,
I'm having some problems in GroupWise 6 which I'd appreciate some help
with.
I'm trying to search an address book for an email address based on the
"from" name in a newly created email, where the address book name format
is "LastName, FirstName". I've tried a number of approaches, none of which
seems to work, as I shall describe below.
1. I get the displayed name in the "from" textbox of the mail by executing
ItemGetText. Now, regardless of the address book name format, the name I
receive is in the format "FirstName LastName" (eg "Dave Smith"). When I
then execute AddressBookResolveFullName on this display name, I am
returned "Token Execution Failed" presumably because the address book
lookup is expecting a name in the format "Smith, Dave" (incidentally, the
same code works fine when the address book name format is set to
"FirstName LastName").
2. As an alternative approach, I get the current UserID by executing
EnvUserId. This gives me a UserId in a format such as
[email protected]. I then execute AddressBookGetFullName in the
expectation of being given the display name (hopefully in "LastName,
FirstName format"), which I could then use in executing
AddressBookResolveFullName. However, AddressBookGetFullName also returns
"TokenExecutionFailed". This may be due to the format of the UserID I am
using not matching what is expected by AddressBookGetFullName. I'm not
entirely clear in my mind about the different formats that can be returned
by EnvUserId, nor how the fields in the UserID map onto the format
expected by AddressBookResolveFullName.
So, Id greatly appreciated answers to the following questions:
1. Why does AddressBookResolveFullName fail when I use the name as it
appears in the "from" text box?
2. Why does the name in the "from" text box not match the name format
defined by the address book? After all, any name I enter in the "To" field
must be in the correct format.
3. Is there any way of converting a name from "FirstName LastName" to
"LastName, FirstName" other than writing code to parse the name for a
comma and switching the names myself? To have to do this seems to me like
asking for trouble.
4. Can I use the UserID returned from EnvUserId when executing
AddressBookGetFullName?
5. Will the name returned by AddressBookGetFullName be in "LastName,
FirstName" format?
6. Or am I missing a much simpler solution to this problem?!
Thanks in advance,
Phil.

[email protected] (magicmonkeyjuice) wrote in
news:[email protected]:
> Hi,
>
> I'm having some problems in GroupWise 6 which I'd appreciate some help
> with.
>
> I'm trying to search an address book for an email address based on the
> "from" name in a newly created email, where the address book name
> format is "LastName, FirstName". I've tried a number of approaches,
> none of which seems to work, as I shall describe below.
>
> 1. I get the displayed name in the "from" textbox of the mail by
> executing ItemGetText. Now, regardless of the address book name
> format, the name I receive is in the format "FirstName LastName" (eg
> "Dave Smith"). When I then execute AddressBookResolveFullName on this
> display name, I am returned "Token Execution Failed" presumably
> because the address book lookup is expecting a name in the format
> "Smith, Dave" (incidentally, the same code works fine when the address
> book name format is set to "FirstName LastName").
>
> 2. As an alternative approach, I get the current UserID by executing
> EnvUserId. This gives me a UserId in a format such as
> [email protected]. I then execute AddressBookGetFullName in
> the expectation of being given the display name (hopefully in
> "LastName, FirstName format"), which I could then use in executing
> AddressBookResolveFullName. However, AddressBookGetFullName also
> returns "TokenExecutionFailed". This may be due to the format of the
> UserID I am using not matching what is expected by
> AddressBookGetFullName. I'm not entirely clear in my mind about the
> different formats that can be returned by EnvUserId, nor how the
> fields in the UserID map onto the format expected by
> AddressBookResolveFullName.
>
> So, Id greatly appreciated answers to the following questions:
>
> 1. Why does AddressBookResolveFullName fail when I use the name as it
> appears in the "from" text box?
>
> 2. Why does the name in the "from" text box not match the name format
> defined by the address book? After all, any name I enter in the "To"
> field must be in the correct format.
>
> 3. Is there any way of converting a name from "FirstName LastName" to
> "LastName, FirstName" other than writing code to parse the name for a
> comma and switching the names myself? To have to do this seems to me
> like asking for trouble.
>
> 4. Can I use the UserID returned from EnvUserId when executing
> AddressBookGetFullName?
>
> 5. Will the name returned by AddressBookGetFullName be in "LastName,
> FirstName" format?
>
> 6. Or am I missing a much simpler solution to this problem?!
>
> Thanks in advance,
>
> Phil.
>
>
>
I'm sorry to say that I have never made this work and have always
recreated the email address. For some reason, getting the email address
out of GW requires hitting the directory, and not the GW database with
any exposed API
Regards,
Michael Risch
Developer SysOp 3

Similar Messages

  • Need powershell commands to get email addresses from public folder created in EAC to CSV

    Need powershell commands to get email addresses from public folder created in EAC to CSV
    1. Created Public folders via EAC - not mail enabled - just to hold contacts.
    2. Assigned owners and showed to add new contacts - then add to favorites and finally to display as address book.
    Now I need a powershell command to get those email contacts in those public folders.
    I need to view them because when we send emails to those groups (via select all) in the public folders, it is creating an NDR for 3 users saying - "..blah blah -OFFICE FAX or HOME FAX) - yet they are getting the emails.
    I suspect that their contact details are corrupt somehow and want to see what contacts are actually listed in the public folders. I already checked to see if the source of the contacts was the public folder or "my contacts" and they are not.'
    I have tried multiple get recipient commands and get public folder commands with no results in the CSV

    The only way to get that data is either via the Outlook com object or using EWS. None of the commands in the Exchange shell look inside of a folder, the most you can get with those is email addresses for mail-enabled Public folders. Here is a link that can
    get you started with how to connect to public folders via EWS, then its just enumerating the folders and looping through the items in the folders for the details of the items. 
    http://gsexdev.blogspot.com/2013/08/public-folder-ews-how-to-rollup-part-1.html
    DJ Grijalva | MCITP: EMA 2007/2010 SPA 2010 | www.persistentcerebro.com

  • My iPhone is stolen. How can I get my address book back from the iCloud? I should have synchronized my iPad address book. However, I loss some recent contacts from iPhone.

    My iPhone is stolen. How can I get my address book back from the iCloud? I should have synchronized my iPad address book. However, I loss some recent contacts from iPhone.

    I use my iPad to get the address book backed up by iCloud from my iPhone. However, I cannot see the recent new contacts from my iPad. Is there anyway to check the iCloud server to see if my address book backup from my iPhone is still there?

  • I got my Macbook Air from a family member and I can't get my address book on my computer.  What do I do to get the address book on it?

    I purchased an Air Mac and can't get the address book on it.  Does anyone have any ideas on what I should do.  I have an IPhone and an IPad and they both have clouds but I don't see one on my Air Mac.

    From the link posted in TD's reply
    To unhide your purchases
    Open the Mac App Store.
    Choose Store > Sign In, then enter your Apple ID and password.
    Choose Store > View My Account.
    Click on View Hidden Purchases from the Account Information page.
    From the Hidden Purchases page, locate the app you would like to unhide.
    Click the Unhide button.
    LN

  • How do I prevent my iphone from downloading my entire email address book from my computer when I do my "updates" .  My contact list is transfered to my iphone and then I have the laborous task of manuely deleting the unwanted unnecessary "contacts" now.

    How do I prevent my iphone from downloading my entire computer email address book when I "update" my phone by plugging it into my computer and do the update procedure.  I am having my phone "contacts" swamped with the entire contacts in my email on my computer and then I am having to manually delete them each time I update my phone...? thanks for any assistance on this...mm

    Thank you for your rapid...excellent answer!!  I feel abit foolish...but I am in a learning process and you are a wise teacher! thanks...mm

  • I can sign into my email account where it goes to "Email Preview", it's stuck on that page. I cannot retrieve my emails, address book, etc. Why can't I get my email page?

    When I sign into my email account I am brought to the "Email Preview" page. When I click on "email", "address book" or any of the other files, it tries to connect. In the box at the top it says "connect, then Zimbra, then connect again. Then I am brought right back to the "Email Preview" page.
    I can't even open individual emails from this page. I am stuck on this page.
    Altho, I can sign out.

    How about '''View Entire Inbox''', does that work?

  • When I try to open my Address Book from Finder, it says :You can't use this version with this version of Mac OS x. I have Address Book 5.0.3 and Mac OS X 10.7.5 What should I do to get my Address Book back???

    When I try to open my Address Book from Finder, it says :You can't use this version with this version of Mac OS x. I have Address Book 5.0.3 and Mac OS X 10.7.5 What should I do to get my Address Book back???

    Unless you deleted Address Book 6, or restored from a backup made before you upgraded to Lion, Address Book 6 should be on your disk somewhere.  Try to find it with spotlight or by browsing likely folders with Finder.  Also check Trash. If you find other Address Books, using Quick View or Get Info in Finder should show the version number.
    Have you ever moved Address Book out of the Applications folder, either before or after you upgraded to Lion?
    If you can't figure out how this happened in the first place, I would be worried that other OS X utilities are similarly affected.

  • How can I get my Yahoo email address book onto my blackberry tour?

    This is my first blackberry and I am lost.  How can I get my Yahoo email address book onto my blackberry tour?
    Solved!
    Go to Solution.

    Hi and Welcome to the forums!
    Was it there before and it is now gone? Or are you wanting to configure Yahoo email for the first time? See this demo information:
    http://na.blackberry.com/eng/support/blackberry101/setup.jsp#tab_tab_email
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How do I get an export tool for my email address book?

    In past years there was an export tool in my email address book.
    I recently went to export and the tool was no longer on the tool bar, nor was the import tool.
    I would like to have this tool.

    When I open my inbox, across the header are the words Mozilla Thunderbird.
    Have I sent my question to the wrong community support group?
    David

  • Lightroom 5.2 eMail address book doesn't work

    Lightroom 5.2 eMail address book doesn't work

    Being sorry really doesn't help. I'm running Windows 64bit and the address book function for eMail doesn't work. I installed 5.3 beta - no help!
    Any suggestions?
    Thanks.
    Well, SVHudson, what did you expect to get from your first post? There was no information at all, not even a question. We are not mind readers here.
    Why didn't you start with the information you are providing now, which, even though it is still not complete, at least gives a hint of what your problem is?

  • HT204150 I have a Mac 10.5.8 op system.  My Contacts do not syn with I cloud.  Trying to get my address book complete on both systems and now I have lots of duplicates on I cloud adress book.  How do I efficiently merge the duplictes that are now on I clo

    I have a Mac 10.5.8 op system.  My Contacts do not syn with I cloud.  Trying to get my address book complete on both systems and now I have lots of duplicates on I cloud adress book.  How do I efficiently merge the duplictes that are now on I cloud?

    You cannot use iCloud with Leopard 10.5.8. The minimum requirement is Lion 10.7.2. If you have been syncing your contacts with iCloud you can only have been doing it by some sort of unsupported hack, and if it doesn't work it's unlikely to be possible to find an explanation. If you have been using other (compliant) devices by trying to sync using both iTunes and iCloud you are likely to get duplicates.
    A computer old enough running Leopard may well not be upgradeable to Lion or Mountain Lion, but if you can do so this is the only way you are going to be able to make proper use of iCloud.
    The requirements for Lion are:
    Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    2GB of memory
    OS X v10.6.6 or later (v10.6.8 recommended)
    7GB of available space
    To purchase it you will have to ring Apple at the number given at the bottom left of this page.
    The requirements for Mountain Lion are listed here:
    http://www.apple.com/osx/specs/
    It is available from the Mac App Store (in Applications). (If you are currently pre-Snow Leopard you will have to upgrade to that to access the Mac App Store: it's available in the online Apple Store.)
    You should be aware that PPC programs (such as AppleWorks) will not run on Lion or above; and some other applications may not be compatible - there is a useful compatibility checklist at http://roaringapps.com/apps:table

  • Importing Outlook Express email address book

    I have tried to sync my email address book but nothing gets transferred. What do I have to do?

    DBD1131 wrote:
    I have tried to sync my email address book but nothing gets transferred. What do I have to do?
    when your Pod is connected to your machine, and you click on its icon in the left window of iTunes, you should see something like this (image shows an iPhone but should also apply to a Touch)
    click on the info tab and select the items you wish to sync to your iPod.
    any help ?

  • My email address book has disappeared maces 10.5.8

    my email address book has disappeared maces 10.5.8

    Paul, get one of these...
    Find Any File...
    http://www.macupdate.com/info.php/id/30079/find-any-file
    I'd get EasyFind...
    http://www.devon-technologies.com/download/
    Search your whole drive for...
    AddressBook.data
    Do we find a bigger one?

  • I can, I can't get my address book to snyc with my ipad2.  I'm using Outlook express 2004.  I followe the steps in itunes, but still no contacts.  Any suggestions?

    Can't get my address book to sync to IPAD2.  Using Outlook Express 2004.  I followed the steps in Itunes, but still not contacts.  Any suggestions?

    Mine is doing the exact same thing, and nobody on any of these threads has had any luck fixing it yet, so far as I can tell. iSync is worthless since it simply won't see the ipod and basically is not used at all now as .mac is done through its own preference window. What did work for me, and was quite easily done, was to just open your ipod through the finder and delete the vcard data in the contacts folder. Export your contacts from address book as a vcard to that contacts folder on your ipod, and it all works fine.
    Still won't sync...but at least this only takes a minute to do. I'd like to actually fix it though.

  • How to import email address book to iphone

    How do I import my email address book from my laptop to my iphone 4

    You syncronize them with iTunes

  • OOPs the browser is blocking my loaded email address book - How do I fix this?

    Oops browser is blocking popups - error msg - comes up when I try to access my email address book.
    How do I stop this from happening?

    To turn off pop-up blocking for a site, you could try this (open the dialog using either of these):
    * right-click a page on the site > View Page Info > Permissions tab
    * while viewing the site: Tools menu > Page Info > Permissions tab
    Under Open Pop-up Windows, uncheck "Use Default" and click the bubble for "Allow", then close that dialog.
    Does it work?

Maybe you are looking for

  • Way to transfer photos from iphone to card while on vacation?

    Is there a way to dump photos to, say, a SD card directly from the iphone. Do not have a computer or ipad away and would like to free up some space. Thank you in advance. Chris

  • Can't stop sounds embbed in movieclips timelines

    Hello i have a big problem. I searched everywhere but no  answer.i have a main Movie containing many movieclips with sound  atttached in their timeline. When i change to a different frame from my  main movie ( Main Timeline) the sound from my old mov

  • Need help recovering files

    Adobe Reader could not open 'f1065sk1.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded). This is the error message I keep getting wh

  • Missing blank disc icon

    OK...what happened to my blank disc icon when I pop one in the drive? I want to drag and drop photos from iPhoto5 onto a disc for a non-mac user, and I can't find my disc...in fact, I can't even find it in the Finder? Anyone know what gives? Thanks,

  • I bought the 5s in USA above one month ago. I want to change it to 6. How many money I need to add?

    I bought the 5s in USA above one month ago. I want to change it to 6. How many money I need to add?