Creating a Revision#
EntityTypeName.Create
EntityTypeName.SetRevisionName
Revision for a new entity#
Similarly to what is described in Creating Entity Objects, to create a new entity for a versioned entity type in Critical Manufacturing MES, navigate to the Business Data menu and select the entity type from which you want to create an entity. Select the New button on the top ribbon and you will be presented with a dialog to start the process. Taking Product as an example:
After filling the necessary information (that will be different for each entity type), the system will create a new revision and the first version for that revision. The new revision will require a Change Set so that a version can be associated to it and be set as effective. The Change Set is then associated to the actual version and not to the revision.
A Change Set is required in order to move the version from the Created state to the Active and Effective states. It is possible to configure a particular Entity Type to use an automatic Change Set. It is also possible to specify a particular role to approve the changes of the entity within the Change Set.
Info
If a new revision is created from an existing entity, the new version that is also created will be based on the currently selected version, with its data being copied over to the new version being created.
Info
You can bundle multiple versions belonging to different revisions of the same entity in a single Change Set and approve all of them simultaneously, if so desired.
Revision for an existing entity#
If you are creating a new revision for an existing entity, the process is similar. Navigate to any existing entity in the system, select New Revision in the top ribbon, define the necessary information and select Create to finish the process.
For more information on how to create and work with versions, see Versions.

