How can we pass Case ID dynamically inside web embed in pega constellation

I have created a web embed in pega to open a case by ID(hardcoded case id) in pega constellation application.

I have referred this web-embed in a UI kit application and the case mentioned in the web-embed is loading.

Now i want to remove the hardcode case id mentioned in web-embed and want pass dynamic value for caseID to open different cases.

Can anyone help here?

@SreenivasuluV16633502 please can you post your question the following discussion which is open until the rest of the year?

Constellation- Ask your Questions!

You will have the chance to have this looked at by multiple subject matter experts!

@SreenivasuluV16633502

If you’re leveraging the Display Page(to show Landing Pages) using WebEmbed, it’s internally handled based on your selection of case hyperlinks.

If you’re building a Custom list screen to show the list of cases on your web page, you have to retrieve the pzInsKey from your custom list based on user selection and pass the pzInskey to the snippet of code below.

<pega-embed id=‘theEmbed’ action=‘openCase’ caseID=‘pzInsKey’ casePage=‘assignment’ appAlias=‘constellation-dx-components’ pegaServerUrl=‘https://lab-02196-bos.lab.pega.com/prweb/’ autoReauth=‘true’ authService=‘pega’ clientId=‘98274715230851388807’ style=‘width:100%’>