web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Search for record in S...
Power Pages
Unanswered

Search for record in Subgrid

(0) ShareShare
ReportReport
Posted on by 96

Hi,

I have an advanced form step with a subgrid called Dependents . Before I move from this step to the next step I want to check if the subgrid contains a dependent record of type 'Spouse'. The subgrid can contain one or more dependent records (child, parent etc) , but must have one 'Spouse' record. 

I tried creating a synchronous workflow on the dependent entity which updates a flag on the main entity as soon as the dependent of type 'Spouse' is saved, but the main entity screen does not show the refreshed value of the flag. It still stays as 'No'. 

 

Is there another way of doing this ?

Categories:
  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    You have a few options to achieve this:

    • Client-side: you can call the Read API operation and count the number of related records and then prevent the user from moving to the next step (probably what I would do)
    • Client-side: you can via JS, loop through the subgrid and check the records to make sure you have the related record Spouse as expected
    • Server-side: you can via plugin perform the retrieve of the related records and then throw an exception if this isn't found (plugin has to be triggered on the change of the step, you can for example metadata to set a flag that you are moving from that step)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 25 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 20

#3
DianePana Profile Picture

DianePana 9

Last 30 days Overall leaderboard