SAP / cloud-sdk-js

Use the SAP Cloud SDK for JavaScript / TypeScript to reduce development effort when building applications on SAP Business Technology Platform that communicate with SAP solutions and services such as SAP S/4HANA Cloud, SAP SuccessFactors, and many others.
Apache License 2.0
164 stars 56 forks source link

How to fetch destinations from a specific BTP subaccount different from the current one? #3626

Open ptesny opened 1 year ago

ptesny commented 1 year ago

How do I tell cloud-sdk to go and fetch destinations from a specific BTP subaccount and different from the one used for users authentication ?

marikaner commented 1 year ago

I don't think this is currently intended in the SAP Cloud SDK. You can change the selection strategy and adjust whether to use the subscriber or provider. I assume this is not enough for your case? Could you please describe your use case?

ptesny commented 1 year ago

@marikaner, indeed, as you have guessed, my use case is not a classic multi-tenancy one-to-many relationship, with a single instance of a provider and multiple subscribers (consumers, data sources, etc);

What I am aiming at is to be able to share a number static resources (destinations, html5 repo, cloud connectors) that reside or are hooked into a single master BTP subaccount among a number of providers for enhanced resilience. There can of course be mutlitenancy for each of the providers....and consumers can subscribe to multiple providers as well;

What I would like to have is a shared and static pool of destinations....and if dynamic changes were required then the off-spring destinations would be set up on the fly as instance level or inline destinations....