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
Expand all | Collapse all

How to access value in last index of document list on webMethods.io

  • 1.  How to access value in last index of document list on webMethods.io

    Posted Thu July 25, 2024 11:29 AM

    Hi All,
    I have a document list, of which I need to access the last item in the list and map a string.
    I cannot see a way to do this on webmethods.io without looping over the whole list to get to the end?
    On prem we can get SizeOfList, subtract 1 and use that as the index. I have done the same on .io but cannot use the value as an index.
    Any help appreciated.


    #webMethods-cloud
    #webMethods
    #webMethods-io-Integration


  • 2.  RE: How to access value in last index of document list on webMethods.io

    Posted Thu July 25, 2024 04:49 PM

    Looping looks like your only option, since indexed mapping only takes an integer as the index.


    #webMethods-cloud
    #webMethods
    #webMethods-io-Integration