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.  Sorting Documents in a DocumentList

    Posted Tue July 07, 2020 03:25 AM

    Hello All,

    I have a requirement.
    I have a document list with data including timestamp information.
    Now, i need to sort these documents inside the list in ascending order of timestamp.

    Can this be done.
    Meaning, i pass document list to a service which performs this logic, and as output, i get a document list which has the child documents sorted in ascending order of their timestamp.

    Is there an built-in service that we can use?

    Thanks & Regards,
    Khushaboo Shandilya


    #webMethods-io-Integration
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Sorting Documents in a DocumentList

    Posted Tue July 07, 2020 03:49 AM

    Hi Again,

    Yes, there is in-built service available in WmPublic package doc folder sortDocuments which you can use for sorting of documents on any ASC and DSC pattern. You can use comparestring by selecting any one of option (string, datetime & numeric).
    For more details- please refer Developer guide.

    Thanks,
    Kuldeep Guipta


    #webMethods-io-Integration
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Sorting Documents in a DocumentList

    Posted Tue July 07, 2020 05:15 AM

    As soon as i posted this, I found the service! Eureka!
    :slight_smile:

    Issue Solved!
    Thank you so much Kuldeep!

    Regards,
    Khushaboo Shandilya


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-io-Integration


  • 4.  RE: Sorting Documents in a DocumentList

    Posted Tue July 07, 2020 11:07 AM

    Additional Source for documentation might be the IS Built-In-Services Reference, which also explains the inputs, outputs and usage of the services.


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-io-Integration