pegasystems / uplus-wss

The Uplus application showcases how a web application can be integrated with the Pega Platform around Mashup, Co-Browse, Pega chat and Knowledge Management as well as with the Customer Decision Hub (CDH) for offers and realtime streams.
https://pegasystems.github.io/uplus-wss/
Apache License 2.0
39 stars 47 forks source link

Account Number and ContactID are not passed in Bot iframe source #100

Closed PreethiBalakrishna closed 5 years ago

PreethiBalakrishna commented 5 years ago

Iframe source for chat bot doesnot have account number and contactID parameters in github. src="https://crmfsdev.pega.com/prweb/PRChat/app/PegaCSFSSelfService_6378/!CSAdvisor?pyActivity=%40baseclass.doUIAction&action=createNewWork&isWebMashup=true&className=Work-Channel-Chat&flowName=pyStartCase&CustomerURL=pegasystems.github.io%2Fuplus-wss%2Fcommercial_bank%2Findex.html&Language=en-US&channelId=bot29c5e45fe9d148c6a2ece50fe6c14fbb&HelpConfigurationName=Commercial84Bot"

whereas when we run on a local copy of github, we are seeing the values being present like below.

in the local github we are setting these values in cookie in PegaHelperExtension.js file / Set cookies. To be overwritten locally / setCookie("ContactID", "1111111013", 30); setCookie("AccountNumber","72000000", 30); setCookie("UserName","Donna Shelton", 30);

Can you please help us check why the parameters are absent when run through github?

ricmars commented 5 years ago

when you use a local copy of github, cookies between pega Marketing and the uplus site are shared because they are the same site and same url - as such it is possible for the uplus site to access the cookies and update them

When uplus is running on a different host - which is the expected configuration - there is no way to access the cookies used by Pega Marketing.

ricmars commented 5 years ago

the parameters set on the user in Uplus will be passed to the Chat bot mashup after login

PreethiBalakrishna commented 5 years ago

image

I have attached the settings on user tab. This issue is present even though user tab has the details configured. These parameters are not passed in the iframe src as described in the description.

Can you please check it and re-open if it is valid?

ricmars commented 5 years ago

I made some further changes on Friday - The latest Pega Chatbot JS file is now used and apparently the accountID and ContactID were not passed to the ChatBot- did you retest with the latest Uplus app and confirm it works now.

PreethiBalakrishna commented 5 years ago

yes its working fine now. Thank you