Automate

 View Only
  • 1.  JSON API loops

    Posted 07-24-2022 23:43
    Hi all!

    Has anyone used loops in JSON  scripts (Winshuttle Studio)? Some insights of how you insert into the code the start and finish will be highly appreciated.

    Best regards,
    Gonzalo

    ------------------------------
    Gonza Barbot | Consultant
    AKROM PTY LTD | 0415872147
    ------------------------------


  • 2.  RE: JSON API loops

    Employee
    Posted 07-25-2022 14:17

    So I just quickly tested a JSON mapped script with a loop in Studio. 
    You would create it normally and test in Excel first before mapping it to JSON. 

    For each LOOP, the JSON payload will have a Loop array. You would just add the relevant number of items in the array, separated by commas. An example of VA01 with a basic loop is shown below. 
    If you are looking for something else, please be specific and share what you have tried already and where you are getting stuck, so we can try to provide more relevant help. 

    thanks



    ------------------------------
    Jayasri Varyani | SE
    Winshuttle North America |
    ------------------------------



  • 3.  RE: JSON API loops

    Posted 07-25-2022 20:52
    Thank you!

    ------------------------------
    Gonza Barbot | Consultant
    AKROM PTY LTD | 0415872147
    ------------------------------