krism2 Member since 2018 1 post
Posted: 1 month ago
Last activity: 1 month ago

Theme-Cosmos: Open work object in Full portal on Copy sharable Link


Opening the work object in theme cosmos full portal on Copy sharable link (simple URL) is available from the Pega 8.5.1 release. This document explains the necessary steps to make the copy sharable link in full portal.


  1. Configuring the simple URL.
  2. Configuring the supportive activity.
  3. Overriding the pyIsAutoGenThread when rule.
  4. Configuring the Copy sharable link action.


1.Configuring the Simple URL :

  •  It is mandatory to configure the simple URL so that the URL looks like simple path.  
  • Configure URL Mappings
    • Save as the pyDefault in application ruleset if needed.
    • URL Mappings will be available in Dev Studio - > Records -> Technical -> URL Mappings
    • Add the URL alias

Add the URL alias


  • Click Next


Define URL Mappings

2.Configuring the supportive activity:


  • Create the new activity OpenItem(Can be any name, make sure the same is reflected in the URL Mapping) in an application ruleset and Work- class

Parameters :


Data type








Pages and Classes :

Page Name






Steps :

  1.  Property set :Property set
  2. Property set :Property set
  3. Call pxOpenWorkItemNewTabCall pxOpenWorkItemNewTab



3.Overriding the pyIsAutoGenThread


  • This is an important step to make the copy sharable link to open in portal and works correctly. Override the pyIsAutoGenThread in an application ruleset and class should be @baseclass always.


Condition :

pxThread.pxThreadName contains (ignore case) "autothread"

pyIsAutoGenThread Condition


4.Configuring Copy sharable link :

  • Copy sharable link is an action configurable on any work object. Create an action in the respective navigation pyWorkCommonActions



Configure the actions for the copy sharable link :

  1. Run Script
  • This run script will copy the simple url to the clipboard
  • Function Name :
    • CopyContentToClipboard
  • Parameters :
    • SimpleURLValue : D_SimpleURL.SimpleURL
  1. Local action
  • This is used to show the overlay that the url is copied to clipboard

pyWorkCommonActions  Local action


  • Refer the pySharableLinkCopied from Pega-Social ruleset and make the same changes in the respective ruleset.


pySharableLinkCopied  Local action

Once the URL is copied to clipboard open the new browser tab and paste the copied link to open the work object in full portal.

Pega Platform 8.5 Low-Code App Development Dev/Designer Studio User Interface Cross-Industry Front-End Developer Developer Knowledge Share
Share this page LinkedIn