Retrieve Fullname, e-mail from CMS repository

I have a simple challenge for anyone who has experience with querying the CMS repository.  I have been reviewing the SDK and am really confused on the factory design and instantiation of the BO Infoobject classes.
I need to capture the Fullname and e-mail from the CMS repository and insert into a second database's table.  It will be used as a reference to users who have access to BO.   Currently we are only using CE logins (no LDAP or Windows logins.)  
No user interface will be required, just simple database connections from the CMS repository to the history database.
Any help?

You will have to add CE references to your project, but here is the code.
Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Runtime
Imports CrystalDecisions.Enterprise
Imports CrystalDecisions.Enterprise.infostore
Imports CrystalDecisions.Enterprise.Desktop
Public Class ScriptMain
     ' The execution engine calls this method when the task executes.
     ' To access the object model, use the Dts object. Connections, variables, events,
     ' and logging features are available as static members of the Dts class.
     ' Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
     ' To open Code and Text Editor Help, press F1.
     ' To open Object Browser, press CtrlAltJ.
     Public Sub Main()
        Dim boSessionMgr As New SessionMgr
        Dim boEnterpriseSession As EnterpriseSession = boSessionMgr.Logon("ceuser", "cepassword", "server", "secEnterprise")
        Dim boInfostore As New InfoStore(boEnterpriseSession.GetService("InfoStore"))
        'Dim boInfoobjects As InfoObjects
        Dim Users As InfoObjects
        Dim UserItem As InfoObject
        Dim UserObject As User
        Dim Fullname As String
        Dim EEmail As String
        Dim cTitle As String
        Dim Counter As Integer = 1
        'This query will bring back all infoobjects that are recurring schedules
        Users = boInfostore.Query("SELECT TOP 1000000 SI_EMAIL_ADDRESS, SI_FORCE_PASSWORD_CHANGE, SI_NAME, SI_ID, SI_USERGROUPS, SI_USERFULLNAME, SI_ALIASES, SI_DESCRIPTION, SI_LASTLOGONTIME, SI_PASSWORDEXPIRE FROM CI_SYSTEMOBJECTS Where SI_KIND='User'")       
        For Each UserItem In Users
            UserObject = CType(UserItem, User)
            Fullname = UserObject.FullName
            EEmail = UserObject.EmailAddress
            cTitle = UserItem.Title
        Next UserItem
        Dts.TaskResult = Dts.Results.Success
    End Sub
Edited by: Doug Moloney on Jul 28, 2008 10:01 PM

Similar Messages

  • I deleted an e-mail from my iCloud account from my iPhone and cleared the trash. I accidentally deleted an e-mail from my college containing a string of 3 e-mails which are very important. Is there anyway to retrieve the e-mail from the Apple server?

    I deleted an e-mail from my iCloud account from my iPhone and cleared the trash. I accidentally deleted an e-mail from my college containing a string of 3 e-mails which are very important. Is there anyway to retrieve the e-mail from the Apple server?

    My question is similar:  I deleted email folders in my mail app on iPhone 4 and it deleted the folders on all my other devices--literally THOUSANDS of emails!  I went to iCloud to recover them and can't find them.  HELP PLEASE!

  • HT4859 After the i-cloud server issue Nov 26, 2012, I had to change some mail account settings to get my i-cloud mail to work again.  However, all of my received e-mails are gone.  How do I retrieve my e-mails from the server?

    After the i-cloud server issue yesterday, November 26, 2012, my i-cloud mail account on my Macbook Pro stopped receiving mail.  I changed some mail account settings to fix the issue, and was able to start receiving e-mails.  However, all of my historical e-mails are gone.  How do I retrieve all of my old e-mails from the server?

    What settings did you change, what were the changes, have you visited www.icloud.com to see what mail is actually there? and do you have a backup?

  • Mail 4.5 not retrieving catch-all mail from Pop Server.

    I use email fowarding for a domain (hosted at Godaddy) to forward to my verizon email account. For example: [email protected], [email protected], and [email protected] are forwarded to [email protected]  The Mail 4.5 client on my MacBook Pro (OSX 10.6.8) retrieves all this forwarded email correctly from the Verizon Pop3 server.
    I also have one of the domain email aliases setup as a catch-all account. For example [email protected] is configured as the catch all. Mail addressed to [email protected] is also retrieved from the Pop3 server correctly.
    But any mail directed to the catch-all account because the email address is invalid such as [email protected] is not retrieved by Mail 4.5 client.
    The 'catch-all' email is being forwarded correctly to my Verizon Pop server. If I log in to Verizon Webmail I can see the forwarded 'catch-all' emails in the Webmail Inbox. Also if I use Outlook 2010 on my PC to retrieve my Pop mail, it correctly brings down the 'catch-all' email.
    It certainly appears like something internal to Apple Mail is filtering the 'catch-all' email and not retrieving it from the Pop3 Server.
    If you can understand what I'm trying to report - can you help me figure out what is wrong?

    I now do want to catch all email as it has become my lives work to report spam.
    So I figured out an easier way to catch all email using simply the serveradmin command-line tool (this only takes email that would otherwise bounce):
    sudo serveradmin settings mail:imap:lmtp_luser_relay_enabled = yes
    sudo serveradmin settings mail:imap:lmtp_luser_relay = catchallusername
    sudo postfix reload

  • Mail program is retrieving every e-mail from the server every time I open it.

    Each time I open my mail, it retrieves every e-mail that is on the server.  I know that the problem is not with Comcast, because I downloaded Thunderbird and it works just fine.  Once a message has been retrieved, it does not retrieve it again.
    My iMac is Version 10.6.8.
    Thank you,
    Nancy

    To find out if it's system wide or user specific, try this...
    Open System Preferences>Accounts, unlock the lock, click on the little plus icon, make a new admin account, log out & into the new account.
    Setup one mail account for a test.
    Does Mail work in the new account?

  • How do I retrieve an e-mail from December?

    Can I retrieve it?

    If you did not delete it then it should still be there. If you did delete it then you are out of luck.

  • Restore Archived Lion Mail from Time Machine

    I deleted a mailbox, thinking I could add it back, and synch with the server.  That worked fine, but I forgot that I had archived a whole bunch of mail on that account.   Now I want to retrieve the old mail.  I have a fresh Time Machine backup.  How do I retrieve my archived mail from Time Machine for a deleted account?

    If Time Machine was backing up before you deleted the account, you can try to enter Time Machine from
    ~/Library/Mail.  See if the deleted account is in there.

  • HT4759 How to retrieve my e mails on I cloud?

    How do I retrieve my e mails from my me acct in I cloud?

    Delete the existing iCloud account on your phone, then setup a new iCloud account with your new Apple ID. Also, Settings>Store...tap the ID shown...sign out...now sign back in with your new ID.  You will see Delete Account on you phone under iCloud Account. 

  • Problem: Unable to retrieve workflow data from MDM repository

    This is a new MDM installations scenario for version 5.5 SP05 (5.5.40.83).
    After installing MS Visio, finding problems connecting it with the MDM Data Manager. After doing MDM workflow installations, able to initiate the MS Visio Workflow from MDM Data Manager and can see the Pane-MS Visio Workflow Stencil but not the able to see the Pane-MS Visio Workflow Stencil Details that appears below the Pane-MS Visio Workflow Stencil. Secondly geting a pop-up with the error message as - 'Unable to retrieve workflow data from MDM repository.'
    I have added a parameter Mail Server=MailServerIPAddess (the existing IP addr), but it hasn't helped.
    Can any one please help me in this !

    Hi
    As Felix mentioned, it might be a version compatibility problem.
    You have also mentioned that mail server is not working for that  do this
    Mailserver = SMTP server.company.com ( ex. Mail.company(xxxxx).com)
    MDM workflow notify task is working after rebooting the Machine. So the rule is after making changes to MDS.ini file reboot the machine ,to observe the consequence of configurable changes.
    If u need anything this let me know.
    Regards
    Hari

  • How do I get past "Unable to Verify Hotmail Account Information" on iPad2?  Can't retrieve my Hotmail e-mails from my iPad, Help!

    Bought a new iPad2 with wi-fi access.  I am at home on my wi-fi network using iPad.  Trying to add my Hotmail account to the iPad so I can retrieve my e-mail messages.  When I try to add the Hotmail e-mail account to the iPad, I select Windows Live Hotmail on the iPad.  I then enter my Hotmail e-mail address and Hotmail password in the iPad.  The iPad then says Verifying.  Then a box pops up saying "Hotmail Account, Unable To Verify Account Information".  I spent about an hour on the phone with iPad support and they tried everything they could to no avail.  iPad support said I would need to contact Hotmail support.  I have learned that Hotmail does not have a support phone number that you can call, only a search area that is of no help.  I am able to log onto my Hotmail e-mail account no problem on my regular computer.  I was able to program my wife's Comcast.net e-mail into the iPad no problem and bring up her e-mail on the iPad.  I can not get past the "Unable to verify Hotmail Account Information" message on the iPad.  Frustrated, want to be able to retrieve my Hotmail e-mail messages from my iPad, please help!  Thank you.

    My hotmail was working properly until one month ago , then I do not what happens ... My mistake has been to cancel that account and try to re-load it... I am blocked at "unable to verify account details".
    I read and follow carefully all your steps here above but it is not working!!
    I also try to ask securiry code to mocrosoft and put it instead of hotmail password when creating new Ipad account but nothing.
    I try to go everywhere on microsfot pages and on my mail account setting but I can not find any help from there. From PC is working
    I try to choose "other" from the list of account and insert there hotmail account, both indicated adsHOTMAIL or OUTLOOK, but in this case it tells me "username or password for POP3.live.com are uncorrect.... what is POP3.live.com??
    I already try everything find in the net here and elsewhere ... I have hotmail account since years can not thik to change it .... Some other help?? Some indication I have not yet try?
    Why does not appear OUTLOOOK from the choice of default account in the "add account section"????!??!????

  • How to retrieve mails from a Mail Server ? PLEASE REPLY IF YOU KNOW !

    Hello,
    I am trying to retrieve mail from a mail server using the example from JGuru. The command line is as follows:
    java GetMessageExample mail.wlfdle1.on.home.com (Mail Server Name) <username> <password>
    I should be prompted to read the messages in your INBOX. Enter YES to see the message content.
    0: [email protected] Thanks.
    Do you want to read message? [YES to read/QUIT to end]
    YES
    Blah Blah Blah
    1: [email protected] No Thanks.
    Do you want to read message? [YES to read/QUIT to end]
    YES
    Blah Blah Blah Blah
    I do not get any error or any output.
    Any Clue or any idea how I can get some result ??
    Response will be appreciated.
    Thanks.

    This is the sample program from jguru. After executing the following command (replacing the mail server, username, and password):
    java GetMessageExample POP.Server username password
    You'll be prompted to read the messages in your INBOX. Enter YES to see the message content.
    0: [email protected] Thanks.
    Do you want to read message? [YES to read/QUIT to end]
    YES
    Blah Blah Blah
    1: [email protected] No Thanks.
    Do you want to read message? [YES to read/QUIT to end]
    YES
    Blah Blah Blah Blah
    import java.io.*;
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class GetMessageExample {
    public static void main (String args[]) throws Exception {
    String host = args[0];
    String username = args[1];
    String password = args[2];
    // Create empty properties
    Properties props = new Properties();
    // Get session
    Session session = Session.getDefaultInstance(props, null);
    // Get the store
    Store store = session.getStore("pop3");
    // Connect to store
    store.connect(host, username, password);
    // Get folder
    Folder folder = store.getFolder("Inbox");
    // Open read-only
    folder.open(Folder.READ_ONLY);
    BufferedReader reader = new BufferedReader (
    new InputStreamReader(System.in));
    // Get directory
    Message message[] = folder.getMessages();
    System.out.println(folder.getMessages());
    for (int i=0, n=message.length; i<n; i++) {
    // Display from field and subject
    System.out.println(i + ": " + message.getFrom()[0]
    + "\t" + message[i].getSubject());
    System.out.println("Do you want to read message? [YES to read/QUIT to end]");
    String line = reader.readLine();
    if ("YES".equals(line)) {
    // Display message content
    System.out.println(message[i].getContent());
    } else if ("QUIT".equals(line)) {
    break;
    // Close connection
    folder.close(false);
    store.close();
    Please help me on this.
    thanks.

  • Send a mail with a picture from mime repository

    Hello,
    I want to send a mail with a picture from mime repository.
    The mail is sended OK, but the receiver hasn't  the picture on the mail  (don't find the picture).
    Here is my syntax :
       st_objtxt-line = '<IMG SRC="SAPR3://005056B2002D1EE3BF8F5B5ECDCA55E1" ALIGN=RIGHT WIDTH="100" HEIGHT="80">'.
        append st_objtxt to t_objtxt.
    "SAPR3://005056B2002D1EE3BF8F5B5ECDCA55E1" is url of my object mime .
    Have you a idea to resolve this problem ? It's the syntax OK ?
    Thank for your responses.
    Regards.
    JCAIL

    Have you tried storing your picture as a business document?  Have a look at the class  cl_bds_document_set to read your picture from the BDS.

  • Why Can't My iMac Retrieve E-Mail from Yahoo?

    I am having persistent difficulties consistently connecting to Yahoo! in order to send and retrieve e-mail.  Nothing has been changed except the password, which I've updated.  I can retrieve e-mail from my Yahoo account via Safari, but for some reason my iMac's mail application cannot.
    Does anyone have any ideas?
    Fred

    Have opened Mail, under Mail select Preferences, select the Yahoo account and delete the password and the renter it?  Some times it is necessary to delete the account then reestablish the account info to clear problems.

  • Retrieve e-mail from Entourage

    Hello there,
    I just upgraded to OS X Lion on my MacBook Pro, and found out my Microsoft Office 2004 no longer is compatible with it. Does anyone know how I can retrieve e-mails from Entourage. I had some important e-mails saved in folders. Any help would be appreciated.
    Thanks,
    Guillermo

    Install Office 2008 or 2011 and it will import the mail.
    Otherwise, I suggest you post your question on Microsoft's own forums for their Mac software as Apple Communities only provide support for Apple products and the MS forums are obviously geared more toward your question.
    http://www.officeformac.com/productforums

  • Slow content retrieval from content repository on Weblogic8.1 portal server

    The performance of content retrieval from content repository on Weblogic8.1 portal
    server is very slow. Image retrieval takes too much time. Is there any solution
    or workaround to improve the performance.

    More information is required to help you.
    What is the time for retrieval? What is the time for the entire page load?
    What database are you using?
    How many Nodes are in the repository?
    What do the Node types (a.k.a. Object Classes) look like? How many
    properties per Node?
    If using Oracle or MSSQL, did you run statistics.sql?
    (http://google.bea.com/search?restrict=wlp81&ie=&q=statistics.sql&site=bea&output=xml_no_dtd&client=bea&access=p&lr=&btnG.y=0&btnG.x=0&ip=216.148.48.12&proxystylesheet=http%3A%2F%2Fdev2dev.bea.com%2Fimages%2Fdev2dev.xsl&oe=&filter=p)
    Have you adjusted or disabled the content caches?
    Greg
    Koshy Varghese wrote:
    The performance of content retrieval from content repository on Weblogic8.1 portal
    server is very slow. Image retrieval takes too much time. Is there any solution
    or workaround to improve the performance.

Maybe you are looking for

  • How do you get your tv shows and all your movies to download on your ipod 5

    How do I get all my movies and tv shows to pop up on my ipod. I have downloaded them but they wont show up and i have no clue what to do. HELP!

  • Aspect Ratio 16:9 cropping off small amount of all sides on export...?

    I have a project, all data captured @ DV/NTSC 16:9 anamorphic SD. In DVD Studio Pro it looks correct. In Preferences, I have tried exporting 16:9, and 4:3 and either way, when played on any of my DVD players or screens, the apect ration doesn't show

  • Stuped question. Please Help!

    Hi Jdev gurus. I have project with structure: .package1 ..Class1.java .packaje2 ..Class2.java So where is the problem. Class2 use Class1 but when ai right click over Class2 (in Class1) and then select "Go to declaration" it give me Class1.class. Same

  • Regarding session

    how to create a session in slingservlet can anybody pls tell me??

  • Keyboard and tracker not working

    have just purchased a macbook air. After only a couple of hours my notebook keyboard and tracker are not working. the cursor is stuck on upper left hand side of the screen and its stuck on 'bluetooth setup assistant' looking for a wireless keyboard.