Question
pega web mashup param issue
Hi, I am trying to perform open case by handle from pega 8.1 using pega 8.5 mashup code. Below is the configuration in mashup in pega 8.5. As we can see I am using Param.insHandle as instance handle.
Now when I am opening WO from pega 8.1 its failing. Can anyone tell is above the right configuration and what would be the correct way to pass the instance handle from 8.1 to open WO dynamically. After including the mashup in 8.1 section how can I open the Work objects from there. I know I need to pass the pzInsKey from 8.1 but how?
@PrateekG7697
Hi, Using Param.insHandle directly in the mashup snippet may not work. Please check on below things and try to use Pega APIs as mentioned to pass the parameter or property as follows.
1. Disable use encryption in mashup channel as you are passing the key value dynamically.
2. Enable 'Allow passing dynamic parameters' option.
3. You can give any value in the key while generating the mashup snippet.
4. In the host page (8.1 instance where you paste the snippet), use as below if the handle value is present in a property (for eg, Handle) in the current thread of 81 instance data-pega-action-param-key = '<%= tools.findPage("pyWorkPage").getString("Handle")%>' or use as below if the handle is present in a parameter: data-pega-action-param-key = '<%= tools.getParamValue("InsHandle")%>'
5. Also, make sure the gadget is defer loaded (data-pega-isdeferloaded ='true' ) in case you are loading the mashup on some user action using pega.web.api.doAction("PegaGadget", "load").
Also, as this use case is embedding Pega content within Pega, hope you are using below script tag instead of calling pzIncludeMashupScripts activity in order to load mashup scripts.
<script src="PegaCompositeGadgetMgr.js"></script>
<script src="pzpega_postmessage.js"></script>
<script src="pzpega_web_mashup.js"></script>
<script src="pzpega_web_mashup_hostActionsProcessor.js"></script>
Hope these pointers help you in resolving the issue.
Thanks!