Forum Discussion

edgar_joaomx's avatar
11 years ago

body property from MessageDiscussion

Hello guys,

 

Is there a way to retrieve a body property from MessageDiscussion call?

 

Thanks,

Edgar

  • Hi ,

    I am not sure what exactly you mean by MessageDiscussion call.

    But in general , here is a way to get the body of a message (if you have the message id)

     

    <#assign message = rest("/restapi/vc/messages/id/144132").message />

    <#assign body = message.body />

     

    or alternatively , you can get the body value directly , using

    /restapi/vc/messages/id/144132/body

     

    Hope that helps.

     

    Thanks,

    Sam