Conversation

US
Last activity: 15 Aug 2025 16:21 EDT
Data exchange through Pega WebEmbed
Hi,
We have an Angular application and loading pega embed on one of the pages. The following code loads the pega Embed on the angular page:
let newDiv = document.createElement("div");
newDiv.setHTMLUnsafe(data.pegaVDRPEmbedScript);
const pegaMashupContainerDiv = document.getElementById("vdrp-mashup-container");
pegaMashupContainerDiv?.appendChild(newDiv);
"pegaVDRPEmbedScript" is the web embed script which we generated from App studio for a pega landing page. The pega embed script looks like below:
<pega-embed id='vdrpEmbed' action='openPage' pageID='VDRP_2Page' pageClass='samplePegaClass' casePage='assignment' appAlias='sas-pega-poc' pegaServerUrl='sampleURL' autoReauth='true' authService='pega' clientId='67277478603306060011' style='width:100%'></pega-embed>
PEGA embed loads fine on the Angular page. Right now, we have a requirement where we need to exchange data between the web embed and Angular application which is hosting the pega Web Embed.
Following is the requirement: Web Embed will have a table with a list of records as follows:
Title | ID | Status |
---|---|---|
A | 123 | Completed |
B | 456 | Draft |
C | 789 | Draft |
ID column would be a hyperlink, clicking on that hyperlink should pass data from the PEGA Web embed to Angular. Angular will use that id and route the application to a new page with the following URL "http://hostname/123 (When 123 is clicked from the "ID" column). So the link should open the page in the same tab and the routing would be handled by Angular. Could you please let me know how we exchange between web embed.
Thanks!!!!