Use Version Management APIs on SAP Analytics Cloud Data Models
As an application designer or story developer, you can use version management APIs to publish, delete and revert versions, even if the table isn't planning-enabled, for example.
-
Planning.getPrivateVersion, Planning.getPrivateVersions, Planning.getPublicVersion, Planning.getPubllicVersions
-
PlanningPrivateVersion.publish, PlanningPublicVersion.publish
For more information, see Use publish API on Versions.
-
PlanningPrivateVersion.publishAs
For more information, see Use publishAs Public Version API.
-
PlanningPublicVersion.isDirty
-
PlanningPublicVersion.revert
For more information, see Use revert API on Versions.
-
PlanningVersion.deleteVersion
For more information, see Use deleteVersion API.
-
PlanningVersion.copy
For more information, see Use copy API on Versions.
-
PlanningVersion.getDisplayId
-
PlanningVersion.getId
-
privateVersion.getOwnerId
For more information, see Use getOwnerId API.
If you don't want version management scripts to be executed when planning is disabled for the table, use Table.getPlanning().isEnabled() to set this.