Getting Response Body

Copper Contributor

Hi,

I am trying to use the contents of a http response body in my conversation flow. In the data connection element of the health bot, the response variable is named as 'res'. The process is like the data connection element connects to a logic app where user's credentials are verified and then a welcome message with user's name is displayed ("welcome {Firstname}"). I can see the message in logic apps's response body but how do i access this in my bot?

2 Replies

Hi @Ujjawal23 

The response variable that you named 'res' is a property of the scenario object, and can be accessed by scenario.res.

 

Thanks @LilachG. I had also figured it out. Thanks for your reply