Question

16
Views
Raghuram Kadi (RaghuramK5145)
Infosys
Raghuram Kadi
Infosys
CA
RaghuramK5145 Member since 2018 1 post
Infosys
Posted: January 27, 2020
Last activity: January 27, 2020
Posted: 27 Jan 2020 12:58 EST
Last activity: 27 Jan 2020 15:31 EST
Closed

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
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.