SAP Knowledge Base Article - Public

3665281 - script API saveSnapshot() not working in SAC

Symptom

When execute the saveSnapshot() and use the listRecentSnapshotDates(), the newly created snapshot is not listed.

Environment

SAP Analytics Cloud

Cause

The 'saveSnapshot' API is intended for use only in the DCI environment. The API provides greater flexibility in determining when to take a snapshot of the story, but it has limitation. It cannot be used in a typical script within a story, such as as a callback function for a button. It can only be executed in DCI tasks.

Resolution

Based on the above reason, we do not recommend using it unless it is absolutely necessary.

Keywords

KBA , LOD-ANA-UNS-DCI , Unified Story Data Change Insights , Bug Filed

Product

SAP Analytics Cloud 1.0