The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Sending REST request body in yml(yaml) format and parsing resposne which comes in yaml

Nishi6
Kilo Contributor

Did anyone has made rest calls by sending the request body in yaml format. If yes, can you please let me know how do i build the body and pass the parameters. 

Also if we can send the body in yaml format, how do we parse the response will also comes in yaml format. Do we have parser functions built in?

Any help is appreciated.

Thank you

 

1 ACCEPTED SOLUTION

Hi Nishi,

Sending data should be fine

But just to inform parsing the yaml response is not possible OOB with any OOB class

you will have to perform string manipulation to get the values from response

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Hi Nishi,

Sending data should be fine

But just to inform parsing the yaml response is not possible OOB with any OOB class

you will have to perform string manipulation to get the values from response

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader