cancel
Showing results for 
Search instead for 
Did you mean: 

How to access Document Repo id dynamically from HTML5 app

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

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-<account>.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.