Query on Constellation Case Creation DX API

Hello everyone,

I have below query on Constellation Case Creation DX API.

We have two case types, where we use “Property A” as Pick list in both case first assignment (in View), And pick list sourced from Node level Data Page.

When we try use “Property A” in react UI configure dropdown, we have use below location to get the data page details and populate to React UI (For first Case type)

Same way when we try to configure it for Second case type, we have notice we are unable to see same “Shared” tag under "Data" topic.

When I check the DX API documentation, I couldn’t find information on this.

Appreciate if anyone can provide info on this? And debug from where its setting to response?

Thanks.

@NuwanD54

Can you please share more details for this scenario -

  1. Are you able to see the picklist with data populated from data page in second case type or not ?

  2. If not , try checking the contents of the data page using the function PCore.getDataPageUtils(). You can run this function in the browser’s DevTools Console.

You can also refer - Constellation Adoption academy mission for more details on debugging tools.

@Aditi Mehta

Thanks for the response,

Q1- yes in Pega WebPortal we can see

Q2- I can see the Data Page in data sources.

The clarification need is how this “Shared” tag is getting added to the response. (As react team using these tags for populate the data in there side)

@NuwanD54

Thanks for your clarification. As for the “shared” tag - If a read only data page is defined as a table type for a text property (picklist in the data model tab), then the results of the data page are returned in the response under ‘shared’, regardless of whether it has parameters or not. The name is kept ‘shared’ because we keep only one copy of results per param set in the client-side store which can be accessed from different case contexts on the client-side.

These details are missing from the DX API documentation and will be added soon. Thank you for pointing that out.

@NuwanD54

Do you have any DX component or specific to Case type in your application?

Shared - It holds any common datapages that are used by multiple components. So instead of downloading again for each component, it is brought as part of shared.

@Aditi Mehta

Thanks, and really appreciate your help

@NuwanD54

The documentation is updated accordingly. Please refer this link - Understanding a Constellation DX API response