Question

Launch Portal with new work object using snapstart URL

We have followed steps mentioned below link

https://community1.pega.com/community/product-support/question/creation-new-tab-display-new-work-object-portal-using-snapstart

Steps:-

Step 1:

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

http://serverX/prweb/PRServlet?UserIdentifier=userX@companyY.com&Password=cGVnYQ==&pyActivity=SampleClass-Work.New

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

Operator ID: UserIdentifier=userX@companyY.com

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,

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

}
</script>

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***

Comments

Keep up to date on this post and subscribe to comments

Pega
February 28, 2019 - 6:36am

Hello

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.

Thanks,

Deva

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

Hi,

Any one has idea on this.

Thanks,

Deva

July 19, 2019 - 2:35am

Hi,

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.

Thanks