Automic Workload Automation

 View Only
  • 1.  How to take response from GET and update and pass it to PUT request

    Posted Jun 26, 2018 02:54 PM

    GET REQUEST REPONSE: 

    [
    {
    "guideCCID": 5432167,
    "networkCompanyId": "9999"
    }
    }

    I am having above response from GET. Now next API in automation is PUT. So I have to Update netwrokCmpayID from 9999 to 1234. 
    SO How I can do in DEV test Work Station.
    I don't want to make the static body for a PUT. I have to take the same response from GET just one field will update and pass it to put 



  • 2.  Re: How to take response from GET and update and pass it to PUT request

    Broadcom Employee
    Posted Jul 23, 2018 06:52 PM

    Hi km581c ,

     

    If this is a WebService REST job you can parse the result with JSON on the Response tab:

     

    You can also use the Test button the get an outlook on the result:

     

     

    Cheers,

    Alexander



  • 3.  Re: How to take response from GET and update and pass it to PUT request

    Broadcom Employee
    Posted Jul 24, 2018 12:34 PM

    Hi km581c ,

     

    The variable &COMPANYID# can then be used in the follow up job to pass the value for the POST call.

     

    Cheers,

    Alexander