Use Version Management APIs on SAP Analytics Cloud Data Models
As an application designer you can use version management APIs in SAP Analytics Cloud, analytics designer to publish, delete and revert versions, for example, even if the table isn't planning-enabled.
-
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.