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.
Login now to access my digest by 365.Training