# Web Embed to render a list page:  How to pass a param into web embed to use as input to list's data page?

**URL:** <https://forums.pega.com/t/web-embed-to-render-a-list-page-how-to-pass-a-param-into-web-embed-to-use-as-input-to-lists-data-page/9812>\
**Category:** User Experience\
**Created:** [August 5, 2025, 7:36pm UTC](https://forums.pega.com/t/web-embed-to-render-a-list-page-how-to-pass-a-param-into-web-embed-to-use-as-input-to-lists-data-page/9812 "2025-08-05T19:36:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![A2178](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@A2178](https://forums.pega.com/u/A2178)\
**Post date:** [August 5, 2025, 7:36pm UTC](https://forums.pega.com/t/web-embed-to-render-a-list-page-how-to-pass-a-param-into-web-embed-to-use-as-input-to-lists-data-page/9812/1 "2025-08-05T19:36:17Z")

</div>

Hello!

Would like to use Constellation’s Web Embed in an Angular app to render a Constellation List page driven by a Data Page, but need to pass the DP a parameter (the passed parameter controls what results are returned in the List)

What is the best way to pass a parameter (i.e. customerID) from the Angular app into the web embed, and use the passed parameter as an input into the Data Page bound to the List? Here’s the exploration I’ve done so far:

First, the Web Embed channel, configured to “Display a page”.

 ![screenshot.png](https://pega1.discourse-cdn.com/pega/original/2X/5/555c02dac93cb4b4cb7f7b25398d628b314fd881.png)

**Exploration 1:**

The [web embed documentation](https://docs.pega.com/bundle/platform/page/platform/user-experience/attributes-web-embed.html) says you can add **additionalHeaders** attribute to the web embed snippet to send key/val pairs as JSON. However, if I set a parameter that way, I’m not immediately clear on best way to retrieve it on the server side in order to pass it into the Data Page as an input. ( Maybe a Data Page that calls a wrapper Activity that uses Java to pull it off the requestor and pass it to the Data Page? That feels convoluted.)

**Exploration 2:**

The [Web Embed JS API doc for setEmbedData](https://docs.pega.com/bundle/platform/page/platform/user-experience/setembeddata.html) says it can be used not only for an Assignment, but also for a _page_. So, in Angular app I could call setEmbedData(“customerID”, “123456”) before loading the web embed.

 ![api doc.png](https://pega1.discourse-cdn.com/pega/original/2X/0/0b612a638cda08f9cf4a96f3caa2402183963a78.png)

However, I’m not clear on how setEmbedData can be used with a page. I do not immediately see a way to “plumb” the passed value into the data page.

Here’s the view configuration for List page that will render in the web embed. Notice the DP takes a parameter. For the the parameter, I can only choose “constant” or “Field on operator.” There’s not an on option for retrieving it from a page property set with setEmbedData() api.

 ![view config.png](https://pega1.discourse-cdn.com/pega/original/2X/7/70a9d5b6cb8332e2b526f2894ddde4fbca84956f.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![A2178](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@A2178](https://forums.pega.com/u/A2178)\
**Post date:** [August 12, 2025, 4:11pm UTC](https://forums.pega.com/t/web-embed-to-render-a-list-page-how-to-pass-a-param-into-web-embed-to-use-as-input-to-lists-data-page/9812/2 "2025-08-12T16:11:16Z")

</div>

Exploration 1 seems to work. Here’s detailed steps/

Recap of use case: App built with another technology (in this case, built in Angular) knows about an id. Need to pass this id as a parameter to a Data Page driving a list page surfaced by Web Embed.

Two data pages:  
_ **DP\_GetTasksByID** _ that takes an id as a parameter. For this demo, it’s backed by a report def (not shown) that returns a list of tasks for that id.  
**_DP\_GetTasksByID\_Wrapper_** that takes _no_ parameters. It is the source of list landing page surfaced via web embed. It calls a wrapper Activity that will fetch the id from a header in the request. It calls _ **DP\_GetTasksByID** _ and passes the id and returns its results.

​

 ![activity 1.png](https://pega1.discourse-cdn.com/pega/original/2X/3/3f466fd6b08b39b2728d011c986906bce5be253d.png)

 ![activity 2.png](https://pega1.discourse-cdn.com/pega/original/2X/2/28a3b0cdb486d35a303ebddd46cc66251b642af6.png)

Use web embed’s additionalHeaders attribute to pass key/val pair with the parameter you’ll use in data page.

 ![Web Embed.png](https://pega1.discourse-cdn.com/pega/original/2X/f/fe18b4433bb45f7c235f94d428ea7507e2584dd3.png)

The list page in web embed now shows only the records for the passed id:

 ![screenshot of working app.png](https://pega1.discourse-cdn.com/pega/original/2X/a/ac3fd67bdd62f458b2007f581c700ee97f82b177.png)

---

<div class="post-metadata">

**Author:** ![peter\_bessman](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/peter_bessman/32/23280_2.png) [@peter\_bessman](https://forums.pega.com/u/peter_bessman)\
**Post date:** [August 19, 2025, 3:33pm UTC](https://forums.pega.com/t/web-embed-to-render-a-list-page-how-to-pass-a-param-into-web-embed-to-use-as-input-to-lists-data-page/9812/3 "2025-08-19T15:33:22Z")

</div>

@SamA17521857 Good sleuthing — I agree that having to resort to custom Java feels off though. Let me investigate the _setEmbed_ approach and get back to you.
