You might come across a common requirement which is attempting to create a record using an LDS method.
It's not suggested to use this approach straight away, try to use one of the LDS tags to create a record. If the requirement needs bit of a customisation only then rely on using this method which is createRecord.
Here is the sample code that we can use to create a record using the LDS methods (which is createRecord()).
This is the template file used to capture the user input so that it can be used in creating a record.
How this helps!
Subscribe to Salesforce Casts
Get the latest posts delivered right to your inbox