How to check the response for a data updated in the data table using Bot action

Hi Team,

I am trying to update a user input via entity into a data table. I could see the below response:


{
   "nModified": 1
}

How do I refer this response from a message node or in the if condition of Bot action to retrieve its successful update status.

@anusuya.ponnusamy2 ,

You can get this from the context object as below:

context.Service0002.response.body.nModified

You would find the response of the data-service in context.ServiceNodeName.response.body

Please find the document: https://developer.kore.ai/docs/bots/bot-builder-tool/dialog-task/data-as-service/#Service_Call_-_View

Regards,
Yoga Ramya,
Kore Support.

Thanks for the immediate help. This worked for me