Skip to Content
avatar image
Former Member

How to access Document Repo id dynamically from HTML5 app

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 21 at 01:26 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded