How to use/pass entire response of rest api in javascript?
Application Type
Service Studio Version
11.9.1 (Build 33435)
Platform Version

I'm consuming a rest api and i want to show the response data, in the java script autocomplete input text.

I am able to pass the response body  (eg GetUsers.Response.Data[0].Email) as input parameter to javascript.

I want to know if there is a way to send the entire response as a javascript input.

For eg) my requirement will be to show list of email in auto complete text box.

Attaching oml for reference.



Hi Nikhileswar,

You can use the JSON serialize built-in function to serialize the response structure into a text so you can use it as a text parameter in the javascript:

OML in attachment.

Kind Regards,


Hey João  ,

Thank you for the quick  response it worked.

João  is correctly explained, adding to João , if you don't want to pass whole response then you can assign list of response data then you can assign as below.


Thank you Dileep.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.