IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  TN Extended Fields

    Posted Thu January 22, 2004 11:24 PM

    Hi,
    I have a partner setup in TN. Further, I have setup a group under that partner and 2 extended fields. When I extract those extended fields, it gives like an array. Is it possible that I can extract in the way so that I gives me each extended field in seperate string and not an array.
    The reason I am doing this is I have an email specified in one extended field and a username in other. When I extract it, it gives me both as an array but my requirement is to extract only email address.

    Thanks


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: TN Extended Fields

    Posted Tue January 27, 2004 06:14 AM

    I recall extended fields have setup to define name and type for each field you add. TN services had way to get these fields by the name and type. If you getting array that is a collection of your extended fields. I also recall it was a tricky way to get to them. Sorry fo not giving very detailed info here its been long time since I coded this porcess but I could get specific field I wanted from TN. Similar to IData or hashtable having name value pairs.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 3.  RE: TN Extended Fields

    Posted Tue January 27, 2004 04:54 PM

    Here is the basic logic to query the Extended Fields:

    wm.tn.profile:getExtendedFields
    LOOP over fields recordlist array
    BRANCH /fields/MetaData/Name - which in your case would be your email field name

    You will probably need 2 BRANCH statements, one for your email name and one for your email address.

    HTH


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services