Automic Workload Automation

 View Only
  • 1.  WebService REST respond groovy array.

    Posted Jan 10, 2020 11:05 AM
    Hi

    I'm using WEBSERVICEREST 4.5 and trying to return a groovy array to an uc4 array 
    def res=["red","green"]
    retunr res​
    unfortunately the result is stored in the result array as single string.

    does anybody as an idea how to return a groovy array to UC4?
    Thanks

    Christian  


  • 2.  RE: WebService REST respond groovy array.
    Best Answer

    Posted Jan 15, 2020 05:16 AM
    found it:
    def res=["red","green"]
    return res​ as String[]​