I have a requirement where a user clicks on a link from an external (non-Pega) application, and it should open a screen in Pega Constellation. The URL contains parameters, and based on those parameters, we need to fetch data via an API and render a UI.
How This Was Done in Theme Cosmos
In Theme Cosmos, this was straightforward using URL Mappings:
Capture URL parameters
Use an activity to initialize data
Launch a landing page directly
Approach Taken in Constellation
Since Constellation is data-model driven, I changed the approach:
External system calls an API → Creates a record in a Data Type
I generate a link like: sampleURL/prweb/PRAuth/app/dmt/data/document?dataViewName=D_DocumentDMT&pyGUID=dc086956-f155-46e7-b352-ac3ddb46142f&portal=WebPortal
When the user clicks the link:
The record opens correctly in Full Page View
From the Actions menu, the user clicks Edit
On Edit, I call an API to fetch details and display them
On Submit, I call another API to push changes back to the external system
Problem
The Full Page View renders correctly, but:
The Edit option (and other Actions) are not working.
it outlines how the semantic URL works and the example for data instances. It also talks about the routing table, which you might have to regenerate.
Actions on data, would come from your configuration on the actions for that data object?
“data view not found” i think the problem with actions not showing etc. are coming from this error, i’ve commonly seen this in versions before 25, where the datapage for the data object was not set to “api” but it can also be something to do with another permissions. I would raise an incident with My Pega Support to get that investigated.
@VVNagaSaiNIf you see the same behavior directly inside Pega, I would suggest to start by looking at the data object and confirming you have a default savable data page configured.
I have generated the routing table again and yes the actions are configured in the actions of data type. Attaching a video recording that shows the behavior.
In the video, first, I have clicked on data record directly from table in portal and clicked on Edit in actions - It worked.
Next, From the table, I have opened that data record in new tab (which opens a tab with a link that is required in my use case) and then clicked Edit - It failed.
I will raise an incident with the Pega Support for further analysis as suggested. Thank you for the response.
@VVNagaSaiN definitely a support ticket - they would need to see more of your configuration.
I’m leaning towards the edit action not having a View attached to it? The action/view is not marked as a relevant record? Or the action has preprocessing in it (which is not supported on data). Lots of config to look at, Pega Support are the right people to help there.
Please share your INC or the outcome, would be good to have if others find this post in the future and have same issue.
This is the solution given by Pega support. Seems like we need to edit the full page view of the data type at least once after creating the data type for it to work correctly.