Skip to Content
0

How to access Document Repo id dynamically from HTML5 app

Jan 25 at 10:38 PM

38

avatar image
Former Member

Hello,

I'm trying to access the files from Document Repository without hardcoded the private key or repo id in manifest.json because there are multiple tenants with different repo id and there is only HTML5 app which is the based app. I need a solution how can I access repo id (private key) from Document Repositories on SAP Cloud without hardcoded in the destination in manifest.json?

Please see the attachment.

Anyone please help me on this issue.

Thanks,

Dara

snip20180125-1.png (179.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member
Mar 21 at 01:26 PM
0

Hi Dara,

You may try using SAP Document Center Service along with Document Service which would make accessing repositories Info details via the service url end point

https://smd- . int.sap.hana.ondemand.com/mcm/json

{
    "repositoryId":"<repo ID>",
    "repositoryName":"DocumentService",
    "repositoryDescription":"test",
    "productName":"Document Service",
    "productVersion":"1.0",
    "rootFolderId":"<Root folder ID>",
    // and other properties
}

You may also use the Fiori Component that is readily available to access the files from that repository.

Share
10 |10000 characters needed characters left characters exceeded