Forum Discussion

Shivshankar's avatar
8 years ago

Retrieving the message/user in event subscription

<#assign userNode = http.request.parameters.name.get("user","") />

 

 Want to get all details of userNode for UserCreate, UserSignOn, UserSignOff, UserUpdate ,UpdateMessage, DeleteMessage.. Like in documentation we have a complete "message" xml format for CreateMessage , want to retrieve xml body for "user" as well as "message" xml for 

It would be helpful if there is some documentation link which specifies the xml format .

2 Replies

  • Shivshankar's avatar
    Shivshankar
    Ace
    8 years ago

    No this is not what i am looking for. See the following link :/t5/Developers-Knowledge-Base/Subscribing-to-community-events-using-the-REST-API/tac-p/285748#M567

     

    In event subscription when we trigger any event we get 3 things : 1) token 2) event type 3) message(related to Events : MessageCreate,MessageUpdate,MessageDelete ) or user(related to UserCreate,UserUpdate,UserSignIn,UserSignOff ).

    This msg or user is xml string. 

    we are catching this string by following freemarker code

    <#assign msgNode = http.request.parameters.name.get("message","") />

    or

    <#assign userNode = http.request.parameters.name.get("user","") />

     

    I am getting this xml string , but not able to parse it , because the tags it contains are unkown, so is there anyway way or documentation to see which tags are available in  xml corrosponding to all events.