Facing issue in handling Incoming data for userCreate event callback
Hi Team,
I am working on userCreate event subscription.
I have created a callback function which writes a new post in a forum : http://comity.stage.lithium.com/t5/forum1/bd-p/forum1
I want to read user's data i.e first name, lastname, email, userID, registration time, etc. inside my callback function.
my callback function working code :
<#assign userToken = http.request.parameters.name.get("token","") />
<#assign userEvent = http.request.parameters.name.get("event.type","") />
<#assign userNode = http.request.parameters.name.get("user","")/>
<#assign cnt = restadmin("/boards/id/forum1/messages/count").value />
<#assign new_post = restadmin("/boards/id/forum1/messages/post?message.subject=userCreate%20event%20handler${cnt}&message.body=post%20created%20on%20userCreate%20event${cnt}&message.teaser=teaser%20userCreate%20handler${cnt}") />
When I try to get email id of registered current user like :-
<#assign userNode = http.request.parameters.name.get("user","")/>
<#assign userEmail = userNode.email/>
my code stops working.
Please guide me to solve this issue.
Thank you,
Vaishnavi