Question
Retrieve parameters passed in mashup
I have seen questions on how to retrieve parameter values passed via mashup and I am facing an issue where I can see the parameter value but am not able to set it to the workpage.
My mashup code is
<html> <body> <!-- ********************** Begin Pega content ********************** --> <script src ='http://localhost:8080/prweb/PRServlet/app/CRMFS1_7089/?pyActivity=pzIncludeMashupScripts'></script> <div data-pega-gadgetname ='PegaGadget' data-pega-action ='createNewWork' data-pega-action-param-classname ='UPlus-CRMFS1-Work-MSRInteraction' data-pega-action-param-flowname ='pyStartCase' data-pega-action-param-model ='pyDefault' data-pega-isdeferloaded ='false' data-pega-applicationname ='CRMFS1' data-pega-threadname ='LostOrStolen' data-pega-systemid ='pega' data-pega-resizetype ='stretch' data-pega-url ='http://localhost:8080/prweb/PRServlet/app/CRMFS1_7089/' data-pega-action-param-parameters ='{"MemberGuid":"abc","pzSkinName":"CRMFS1","pyMashupSkeletonName":"pyDefaultMashupSkeleton"}' data-pega-redirectguests ='true' ></div>
<!-- ********************** End Pega content ********************** --> </body>
On the pega flow, in the pyDefault of the case, I am doing a set of .MemberGuid to Param.MemberGuid. In the assignment, I have a section where I am showing .MemberGuid as well as Param.MemberGuid. What I am seeing is that the Param.MemberGuid values show but the .MemberGuid does not. How have other been able to use the parameters that Have been passed from Mashup
Hi,
Values passed in "data-pega-action-param-parameters", it is available in parameter page.
Even if you remove set .MemberGuid to Param.MemberGuid., where you are showing Param.MemberGuid will work.
If you want the Param.MemberGuid to MemberGuid, do the property set in the opposite way, assign Param.MemberGuid to MemberGuid.