Launch Portal with new work object using snapstart URL

We have followed steps mentioned below link


Step 1:

We used the below snapstart URL to invoke a custom activity "LaunchPortal"


Application URL: http://serverX/prweb/PRServlet?

Operator ID:

Password: Password=cGVnYQ== (default, no need to modify)

Activity to be invoked: pyActivity=SampleClass-Work.New (We created a new activity "LaunchPoral" in Data-Portal and used it here)

Step 2:

In the LaunchPortal activity, we called ShowDesktop activity in Step 1 and in Step 2 we set "SnapFlag" Property in pyDisplayHarness page to true.

Step 3:

We then created a new section "LaunchCase" in Data-Portal Class, and unchecked the Auto-Generated HTM check box in HTML tab and entered the below code in HTML Source,

var testFlag = "<%=tools.findPage("pyDisplayHarness").getProperty(".SnapFlag").getStringValue()%>";
pega.desktop.createNewWork("ClassName",1, "FlowName");


Step 4:

We added the "LaunchCase" section in the default tab of the portal and finally we checked the "Defer load content" checkbox in the default tab configuration.

We could Launch stand alone section not the work object. Please let us know above highlighted script is correct to launch the case.

***Edited by Moderator: Pallavi to update platform capability tags***


Keep up to date on this post and subscribe to comments

February 28, 2019 - 6:36am


Any error coming in log? Mainly any Access denied or authorization related issue?

February 28, 2019 - 7:13am
Response to Santanu

Hi Santanu,

Thanks for reply. We could launch now. I think it has some cache issue. But it is always launching popup window. 

So we could see one blank window which we have hit the url and other page with work object information. Is there any way to open workobject in same window.



February 28, 2019 - 7:39am

Hi Santanu,

It is observed that the pega.desktop.createNewWork is always opening the new WO in a popup instead of the Work space in the portal. Is there a way to open the WO in the Work space itself? Deva and I are working on the same issue.


March 16, 2019 - 5:44am


Any one has idea on this.



July 19, 2019 - 2:35am


Would you be able to share the custom activity Launch portal. My requirement is to launch the portal from a external web application thru a query string which has customer id has the parameter.

Any insights are really helpful.