Creates a new record for the specified entity type.
The action parameters containing:
ActionResultSimple with:
Executes the action with the provided parameters.
The action execution parameters including context
Promise resolving to the action result
Protected analyzeAnalyze error from entity save/delete operation and return appropriate result
Protected getExtract and validate the EntityName parameter
Optional error?: ActionResultSimpleOptional value?: stringProtected getGet entity metadata and create entity object
Protected getExtract and validate the Fields parameter
Optional error?: ActionResultSimpleOptional value?: Record<string, any>Protected getExtract and validate the PrimaryKey parameter
Optional error?: ActionResultSimpleOptional value?: Record<string, any>Protected handleHandle generic errors with consistent formatting
Protected loadLoad an existing record using primary key
Protected setSet field values on an entity
Generic action for creating new entity records in the database. This action provides a flexible way to create records for any entity type by accepting the entity name and field values as parameters.
Example