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 that a child record is added before user can move onto the next stage

(0) ShareShare
ReportReport
Posted on by 190

How can i make sure that a child record has been entered before a field can be displayed on the parent form?

I have a purchase order form, where some info is entered and saved before the child form subgrid is shown.  Then I want to make sure that a related child record (purchase detail) is entered and saved before the "complete" field is shown on the main form.  Then when user selects complete and saved, the user can move on to the next stage in a BPF.  

I believe this would need to be done with javascript or plugin. I would prefer JS if anyone has a solution.  Even better if this can be done without any customization.  Thanks. 

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi bp3378,

    There is no OOB way to achieve this. You can use the addOnPreStageChange to do this. Here is a blog about it: Dynamics BPF Javascript: NEW onPreStageChange Handler! (richardawilson.com) 

    And you need to check the count of child record: How to get the total record count of a grid in Dynamics 365? - CRM Crate

  • bp3378 Profile Picture
    190 on at

    Thanks I will take a look at the links.  

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
iampranjal Profile Picture

iampranjal 41

#2
Martin Dráb Profile Picture

Martin Dráb 38 Most Valuable Professional

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans