0

localhost:8081/getproduct/? productids=5d668dab0be6a263d464e822&productids=5d668daf0be6a263d464e823

have this API. How to set it in query param of mule4? I am using set variable for that but then I am able to pass only one productid using attribute.queryParams.productIds, but I need to pass list of productIds. How to do it using setVariable?

Ven
  • 2,011
  • 1
  • 13
  • 27
  • do you have RAML definition of productid's, you will need to pass them as `,` separated values and define it as string or use For each when passing multiple Id's – Ven Sep 16 '19 at 07:33
  • How to use For each in set variable? – Poonam P Sep 17 '19 at 06:58
  • wrap HTTP connector in For each, you wont need to set a variable, Please give us more info about RAML , type of get query params. If they are in an array, send them across in for each – Ven Sep 17 '19 at 08:22
  • Thank you so much it got resolved I've done it using setPayload – Poonam P Sep 18 '19 at 09:35

0 Answers0