XRM WebAPI Create new record using JavaScript in model driven app form command button


This article provides a sample code for creating a child record using JavaScript in a model-driven app form command button. The code is called from the command button and requires passing the Primary Control parameter to JavaScript. The code uses the XRM WebAPI to create the record and includes the necessary data for the new record. The article also includes a code snippet and mentions that the code should be placed in the command button's OnClick event.


Article 17m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time