webMethods

webMethods

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.  Updating attributes in bizdoc

    Posted Mon July 31, 2006 05:15 PM

    Hi,
    I have a problem in updating a bizdoc with some custom attributes.
    Situation:

    I will send an EDI 820, in response to that, I will ge back an EDI 824.
    I need to update some predefined custom attributes in 820 bizdoc with the values extracted from 824. (while processing the inbound 824, I need to call the related 820)

    What I did:

    wm.tn.query:createDocumentquery
    wm.tn.query: docuumetquery
    wm.tn.doc: view (this step is causing problem)

    Erros:

    wm.tn.doc:view— “internalId is required”
    But I don’t know how to extract the internal ID?

    Any suggetsion

    Thanks
    Kris


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


  • 2.  RE: Updating attributes in bizdoc

    Posted Mon July 31, 2006 05:29 PM

    Step through your service and note the results returned from the documentQuery call. I can’t remember the field name, but the internal ID is returned in the results. Pass that to the view call and it should work.


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


  • 3.  RE: Updating attributes in bizdoc

    Posted Mon July 31, 2006 05:39 PM

    Kris,
    After the ‘wm.tn.query: docuumetquery’ step you have a document list in the pipeline - ‘results’
    You can get the internal id by referncing - %results/DocID%

    Regards
    Shantanu


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


  • 4.  RE: Updating attributes in bizdoc

    Posted Mon July 31, 2006 06:38 PM

    Kris,

    You will have the documentQuery %results/DocumentId" step thru and check the pipeline (this is a doclist so map the required index to extract docid and map the same to
    tn.doc:view (InternalId) input.

    HTH,
    RMG


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


  • 5.  RE: Updating attributes in bizdoc

    Posted Mon July 31, 2006 07:56 PM

    Thanks Rob, Shantanu and RMG.

    The mistake I did:

    in create document querry call, I didn’t pass the internal sender and receiver ids. Thats the reason I didn’t get any results, so as result count as 0.

    Thanks
    Kris


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