How can i create a record using Query in D365 by using Event handler / chain of commands

Hi have a form and customization has been done.
Now I need to create a record while adding a button ( menu item button)