Question

1
Replies
32
Views
Close popover
Cloe Walker (CloeW938)
IT Solution Service

IT Solution Service
SG
CloeW938 Member since 2018 154 posts
IT Solution Service
Posted: January 21, 2021
Last activity: January 23, 2021

How to launch a specific harness with full portal using Snap Start

Hi,

When user logs in, the defaulted landing page is "My Work" as below.

Default Landing Page

I want to launch other harness, such as Pulse only when accessed via different URL. For this, I have tried Snap Start. I thought "showHarness" may work for this purpose. Please see below help for the syntax.

showHarness

If I understand correctly, the Snap Start string should look like:

http://localhost:8080/prweb?UserIdentifier=steven.tyler&Password=cnVsZXM=&pyActivity=pyMobileSnapStart&pyShowFullPortal=true&Action=showHarness&ClassName=Data-Portal&Purpose=pyPulse&ReadOnly=false

However, when I enter above string in the URL, I got below error.

Snap Start Error

According to the error, it seems to be looking for @baseclass, instead of Data-Portal class.

Another attempt I tried is using doUIAction activity. I have created an activity under @baseclass, named "ShowCustomHarness" and configured it as below.

doUIAction

Then I tried below URL:

http://localhost:8080/prweb?UserIdentifier=steven.tyler&Password=cnVsZXM=&pyActivity=ShowCustomHarness

This time, I was able to open Data-Portal.pyPulse harness, but without full portal. This is not what I want.. I want an entire portal just like when I normally log in to the system.

Snap Start Error 2

Actually I found the same questions on Pega Community, but none of them were answered. Can anyone please let me know a solution?

https://collaborate.pega.com/question/open-non-default-portal-harness-using-url-full-portal-mode

https://collaborate.pega.com/question/snapstart-url-not-displaying-harness

 

Thanks,

 

***Edited by Moderator: Pooja Gadige to add platform capability tags***
Pega Platform 8.4.1 Mobile User Experience