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

Notifications

Announcements

No record found.

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
    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,983 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans