Question

15
Views
RaghuramK5145 Member since 2018 1 post
Sun Life Assurance Company of Canada
Posted: January 27, 2020
Last activity: January 27, 2020

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****

Low-Code App Development Conversational Channels Data Integration
Share this page LinkedIn