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

Issue with AccountID in settings users tab #8

Closed abhishekchepyala closed 5 years ago

abhishekchepyala commented 5 years ago

Describe the bug AccountID in users tab is behaving differently. For Marketing Offer AccountID is expecting Customer ID 'PEGASAFS-WORK-CONTACT CON-733'

{CustomerID: "PEGASAFS-WORK-CONTACT CON-913", ContainerName: "TopOffers", Channel: "Web",…} Channel: "Web" ContainerName: "TopOffers" Contexts: [{Key: "CurrentPage", Value: "index.html", Type: "CurrentPage"},…] CustomerID: "PEGASAFS-WORK-CONTACT CON-913"

For mashup in quick links, AccountID is expecting the AccountNumber, but we have set the value to CustomerID for marketing offer. Hence CustomerID is passed as the AccountNumber as shown below

pyActivity: @baseclass.doUIAction action: createNewWork isWebMashup: true className: PegaFS-SCM-Work-ManageAutoPay flowName: pyStartCase pzSkinName: ClaritySkin_Mantis pyMashupSkeletonName: pyDefaultMashupSkeleton UserIdentifier: FSSelfServiceUser Password: aW5zdGFsbDEyMzQ1IQ== AccountNumber: PEGASAFS-WORK-CONTACT CON-913 ContactId: 1557350040 IsWSSQuickLink: true

It is conflicting and not able to launch the mashup, I am getting the below error .AccountNumber: "PEGASAFS-WORK-CONTACT CON-913" is too long, maximum length allowed is 16

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://pegasystems.github.io/uplus-wss/retail_bank/index.html'
  2. Upload the attached config file.
  3. LogIn with MaryFischer
  4. Under quick links click on Setup Autopay
  5. See error .AccountNumber: "PEGASAFS-WORK-CONTACT CON-913" is too long, maximum length allowed is 16

Note: AccountID is specific to customer and i cannot mention it under extra parameters in quick links

Expected behavior It should launch the mashup content

Screenshots config-text (1).zip error

ricmars commented 5 years ago

Added a new parameter under user settings: customerID- the customerID will be passed to Pega Marketing to get the offer - this avoid the issue where the accountID was used for both customerID and mashup parameter.