Question

How do we pass a hardcoded value in mashup script to clipboard page after launching the script.

Hi Chris,

How do we pass a hardcoded value in mashup script to clipboard page after launching the script. I am trying to pass value to a property and use that value on my case. I have tried below script

I want to pass something like data-pega-parameters='{ “pyWorkPage.ExternalUserName":"paul"}

I want to use that value(pyWorkPage.ExternalUserName) to show in my New harness when I launch case type in Iframe

<!-- ********************** Begin Pega content ********************** -->

<script src ='https://xxx /PRServlet?pyActivity=pzIncludeMashupScripts'></script>

<div data-pega-gadgetname ='PegaGadget'

data-pega-action ='createNewWork'

data-pega-action-param-classname ='XX-XX-Work-XX'

data-pega-action-param-flowname ='pyStartCase'

data-pega-action-param-model =''

data-pega-isdeferloaded ='false'

data-pega-applicationname ='XXX'

data-pega-threadname ='STANDARD'

data-pega-systemid ='pega'

data-pega-resizetype ='stretch'

data-pega-url ='https://xx/ PRServlet'

data-pega-redirectguests ='true'

data-pega-parameters='{ “pyWorkPage.ExternalUserName":"paul"}

data-pega-action-param-parameters='{"UserIdentifier":"External","Password":"zzzzz"}'></div>

<!-- ********************** End Pega content ********************** -->

Thank You!!

Branched Post Information: 
Correct Answer
June 25, 2019 - 2:43pm

Hi,

The data provided in data-pega-action-param-parameters will be part of the parameter page when running the given action specified. In your case with createNewWork the values will be passed as parameters to flow being called. 

Hope this helps,

--Chris

 

Comments

Keep up to date on this post and subscribe to comments

Pega
June 25, 2019 - 2:43pm

Hi,

The data provided in data-pega-action-param-parameters will be part of the parameter page when running the given action specified. In your case with createNewWork the values will be passed as parameters to flow being called. 

Hope this helps,

--Chris

 

June 25, 2019 - 2:43pm
Response to

Thanks Chris your suggestion worked.

I have found the solution to capture the parameters that are sent in the data-pega-action-param-parameters -  we have to add those parameters in the pydefault -Data transform (In the flow- pyStartCase) of case type.

 

July 29, 2019 - 1:24pm
Response to ChrisKoyl

Hello there,

I have similar requirement as above but in my case i am displaying a harness and trying to call an activity and pass parameter.

Its like a case searching harness but i am unable to pass parameter to the Pega screen through mashup code.

Working on 8.2.2 below is the code snippet, need some urgent help here thank you.

 

<script src ='https://some url/prweb/sso?pyActivity=pzIncludeMashupScripts'>
pega.web.config.systemID = "https://some url/prweb/sso/";
pega.web.config.appName = "<app name>";
pega.web.config.thread = "STANDARD";
pega.web.api.doAction={"PegaGadget",pyActivity=Data-Portal.<activity name>,AccountNumber:"some number"}
</script>
<div data-pega-gadgetname ='PegaGadget' 
data-pega-action= 'display'
data-pega-action-param-harnessname ='harness name' 
data-pega-action-param-classname ='Data-Portal' 
data-pega-action-param-model ='' 
data-pega-action-param-readonly ='false' 
data-pega-isdeferloaded ='false' 
data-pega-applicationname ='app name' 
data-pega-threadname ='Thread1' 
data-pega-resizetype ='default' 
data-pega-url ='https://some url/prweb/sso'
data-pega-action-param-parameters="{pzSkinName:'skin name'}"></div>

November 26, 2019 - 7:18am
Response to kapilc85

Hi,

Did you find out a solution for this requirement as we are facing similar issue?

Thanks,

Deep