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.  DocumentID

    Posted Tue October 08, 2002 07:44 PM

    How do you retrieve the internal document ID in a flow service.
    I was looking for something like getInternalDocumentID simlar to the getInternalID for the profile but could not find it.
    Point me in the right direction please.
    Thanks.

    Chris


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 2.  RE: DocumentID

    Posted Tue October 08, 2002 07:58 PM

    Hi Chris,
    If you have a bizDoc then you can get Document ID under BizDoc envelope? I am not sure what you have available to get the Document ID.
    Is your flow called by processing rule? Please provide more info


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 3.  RE: DocumentID

    Posted Tue October 08, 2002 08:32 PM

    Hi Pu,

    I’m trying to use createDocumentQuery to query a specific doc type and a specific status. Actually what I’m looking for is the InternalD of the Doc Type and not the documentID.

    Chris


    #Integration-Server-and-ESB
    #webMethods
    #B2B-Integration


  • 4.  RE: DocumentID

    Posted Tue October 08, 2002 08:59 PM

    Try
    “wm.tnweb.querySvc:getDocuments” service. This can take a specific document type as input at “DocTypeName” This will result in a Record List called “Docs” (in some cases toDocs and fromDocs) which contains “DocID”. Loop over the Docs recordList and call “wm.tn.doc:view” and pass the DocID of each iteration to “internalId” This will give you bizDoc for all those transactions which also contains internal ID you are looking for.

    HTH


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB


  • 5.  RE: DocumentID

    Posted Wed October 09, 2002 02:58 AM

    Hello Chris -

    wm.tn.doctype:list will return you a list of doctypes, with internal ids in ‘types[n]/TypeID’. You can use these to create a document query.

    If you are dealing with bizdocs, the doctype’s internal Id should be in ‘/bizdoc/DocType/TypeID’

    Regards,
    Sonam


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB