Pre & Post Processing for Embedded Data

Discover how to add or edit embedded data using actions with full control. Apply pre/post processing for smarter interactions, validate entries instantly, and refresh forms dynamically. Perfect for complex workflows requiring accuracy and automation.

https://players.brightcove.net/1519050010001/default_default/index.html?videoId=6384946549112

The above video also covers the useful tips like:

  • usage of TOP (instead of pyWorkPage)
  • actions on embedded data (including pre/post processing to prefill data)
  • form refresh settings

You may also find these tutorials and docs helpful

Related Articles

Credit

@MARIK, SrikanthY16686929, LantzAndreas and AlexD619 for bringing to light in this Expert Circle conversation

Constellation 101 Series

Enjoyed this article? See more similar articles in Constellation 101 series.

5 Likes

@MarcCheong Hi, is functionally limited to only for embedded reference? are we able to use from landing pages with list view and insights, when we create a new record to check the record already present and avoid duplicates records and all?

@VenkateswararaoK a good question! This 101 was to outline the new '25 feature.

Embedded Data tables support Views or Actions

If you configure an Embedded Data list of record field to appear as a table that is editable in a modal dialog box, you can now source the content of that modal from either a View or an Action. Because User Actions support pre- and post-processing and refresh condition, when you use them in an embedded table, you can define validations that can help your users avoid inputting incorrect data.

For more information, see Views and Actions in modal dialog boxes.

Creating new data instances from a list view, this is not part of this feature. I don’t believe there is a way to execute your business outcome exactly like outlined above - you’d likely need to do somethings with keys to avoid duplicates, like you would of done in UI Kit when delegating data… However, its not an area I’ve explore in depth. I’d suggest starting a new Conversation on UX Expert Circle, see if we can find someone in the community with experience in this area

@MarcCheong Do we have something like this in '24?

Hi @MarcCheong , I have tried using TOP for prepopulating embedded data list. Which is working. However, I am trying to add a post processing activity, which will check if same email id will be entered for multiple rows of embedded list.It will throw error. As per the documentation, from the post processing activity, we can put reference like TOP.ApplicantList where ApplicantList is the embedded data list created on work page.I am not able to save the activity with this reference.I have done show page on TOP so that I can see content of TOP at runtime and it shows my whole pyworkpage within TOP including the embedded field.But when I am trying to looping through it, it is not allowing me to the reference.

TOP.ApplicantReferenceList.

I am using Validating marking of a single row in an Embedded Data table as primary as reference to implement it.

I do not know why specifically it won’t allow looping - that may be worth raising a ticket to Pega Support to understand why.

As for the need to validate - could you not just use a validation rule on the case flow action? I know that would work. You might be able to do it inside the embedded data’s flow action, but you may also hit the issue with “TOP” again (i have not tested this).

Putting the validation in the modal might also cause UX issues. If I can not see the other items in my list, and you’re telling me this email is already in the list, i need to cancel out of the modal just to verify that. Having it on the case, where i can see all my rows could be a nicer UX?

Hi Marc, Thanks for responding .I have used validate rule inside embedded data list flow action.I mean, I have used user action instead of view inside Embedded data list and in that user action I have used validate rule, that is working fine.Though it doesn’t have TOP reference.But in the same user action, I have used a pre processing data transform where I have used TOP reference to prepopulate data from workpage.That is working fine.Only for looping in post processing specially where I have to refer the list through TOP refrence, it’s failing.Lets see if anyone else has faced similar issue. :slightly_smiling_face: