Question
Wipro
CA
Last activity: 27 Jan 2020 15:31 EST
Unable to read HttpHeader information coming from external application to Pega CSI chatbot
Hi,
I'm trying to read the HttpHeader information in Pega chat application Pega (CSI - chatbot), but below code returns null
javax.servlet.http.HttpServletRequest request1 = (javax.servlet.http.HttpServletRequest)tools.getRequestor().getRequestorPage().getObject("pxHTTPServletRequest");
if (request1 != null) {
String ivuser = request1.getHeader("AUTHORITATIVE_SESSIONID");
oLog.infoForced("This is the request header" + ivuser );
oLog.error("This is the request header" + ivuser );
}
else
{
oLog.infoForced("request is null");
oLog.error("request is null");
}
we have tried this code in the java step of below activities
pyAcquireInteractionForPreview
pyGetAssignmentKey
pyStartAuthenticationProcess
pyDefault of Work-Channel-Chat
Is there any activity that we can use to get the Header info. We want to access the HTTP header for every chat message from the User.
Thanks
***Edited by Moderator Marissa to update platform capability tags****