Skip to Content
-1

How does isdeletion flag work for file api?

Feb 28 at 05:38 AM

11

avatar image
Former Member

Retrieve metadata of a file (http://wiki.eclipse.org/Orion/Server_API/File_API#Getting_file_metadata). It is possible to retrieve the complete history of a file either by using SapBackPack.History = true or S apBackPack.Versions = true . However, note that SapBackPack.Versions also retrieves the current active version. If a version of a file was deleted, the parameter IsDeletion=true is added to the corresponding version in the history list. By default, no information about the file history or versions is retrieved.

If I manually delete a file from the server, it deletes the entire record in the ACTIVE_OBJECT table. What happens if I still want the record but just mark it as deleted?

Currently my retrieve file api returns the following

{"Name":"THISISATEST.txt","Directory":false,"Attributes":{"SapBackPack":{"Activated":true,"IsDeletion":false}},"Location":"/sap/hana/xs/dt/base/file/test/THISISATEST.txt","RunLocation":"/test/THISISATEST.txt","SapBackPack":"{\"Version\":2,\"ActivatedAt\":\"null\",\"ActivatedBy\":\"SYSTEM\",\"ObjectStatus\":\"0\",\"Type\":1,\"IsDeletion\":false}"}]}

API
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers