Prior to D365 V9, we were using Xrm.Utility.openEntityForm() to open an existing record or to open a create form of an entity providing some additional parameters. However, in D365 V9 as it has been deprecated, we need to use Xrm.Navigation.openForm() to perform the same operation.
Here’s an example of the change in API along with it’s parameters.
While creating a new record, we can pass values to the attributes using an object which is optional. Please see below sample:
Hope it helps!!