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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

How can I validate records exist in a related records subgrid?

(0) ShareShare
ReportReport
Posted on by 99

I am just getting started on Model Driven apps. I am creating an an app where users are requesting a new client be setup. I have a related table within a subgrid on the form where they can add contact information. Before the request can be submitted or moved to the next stage we require at least an email address and phone number. How can I validate this and possibly show a message to the user?

I have the same question (0)
  • Suggested answer
    Torrado Profile Picture
    1,270 on at

    Hello

    If I understood your scenario, you want to validate if the main record contains at least one contact information record associated and, if it doesn't, prevent the user to move to the next stage.

    You can perform that validation by using a synchronous Workflow (extending with Custom Workflow Activity to check if the main record contains the related records) or a synchronous Plug-in (on PreValidation stage).

    Hope this helps you.

    Please mark the answer as verified if helpful.

  • Suggested answer
    Ran Zhang Profile Picture
    Microsoft Employee on at

    Hi,

    May I know if you tried using Business Process Flow to verify if an email address and phone number are entered?

    Please refer to this post community.dynamics.com/.../is-it-possible-to-display-a-warning-message-on-bpf-when-a-field-value-is-not-entered.

  • Mahendar Pal Profile Picture
    45,095 on at

    You can validate record counts using skd or javascript (retrievemulitple request )and can validate based on the related records counts.

  • Torrado Profile Picture
    1,270 on at

    Hello Myke,

    Do you need additional help? Any news?

    If it's already clarified, and the answer was helpful, could you please mark it as verified? That will help others in future.

    Thanks

  • mykedeabreu Profile Picture
    99 on at

    None of the suggestions are clear to me. 

  • MikeFarrant Profile Picture
    7 on at

    I have the same problem - I realise this was a while ago but did you ever find a solution?

  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    Hi,

    I think you can register your plugin on your Business process flow Entity and check if record exist in Related entity .

    Every BPF will have corresponding custom entity created by the system.

    Stage field can be used to identify the current stage.

    Lookup to your main Entity field will be used to validate related entity record.

  • Suggested answer
    Best soundbar Profile Picture
    10 on at

    Hey thanks for the super helpful reply. I'm not sure how I missed that thread. I haven't quite mastered the search function on here. I think I'll pass with him this time around. If i want any further guideline we will contact you here
    https://community.dynamics.com/365/f/best-soundbar/dynamics-365-general-forum/p/1272457/

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 130

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 77 Super User 2026 Season 1

#3
Martin Dráb Profile Picture

Martin Dráb 54 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans