cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Subscribe dependent SaaS application

jreimann
Participant
1,507

Hi SAP-Community,

we use the CAP framework in our products. We now have the use case that we want to subscribe one SaaS application and automatically trigger the subscription of another SaaS application deployed in the same subaccount.

In the first SaaS application we added a dependencies section to our .cdsrc.json file like described in the CAP documentation with the xsappname of the second application.

When we hit subscribe in the BTP cockpit, we get the following error from the Subscription Management Dashboard:

subscribe failed. Error: subscribe failed. Parameters: rootSubscription: 3,850,755. Error description: Timestamp: Fri Dec 17 09:59:56 GMT 2021, correlationId: c241c1ac-9c4f-4771-783a-4f210d8d9874, Details: Error build subscription tree : Error parse get dependencies of application with appName: appName-app1. Error: getServiceDependencyAppId Response from XSUAA invalid: XsuaaApplicationDto(xsappname=xsappname-app2, masterAppId=null, appid=appId-app2, orgId=orgId, serviceinstanceid=serviceInstanceId, tenantId=tenantId), AppDependencyDto AppDependencyDto(appName=null, appId=null, xsappname=appId-app2, serviceInstanceId=null, displayName=null), url: https://api.authentication.eu10.hana.ondemand.com/sap/rest/authorization/v2/apps/appId-app2

In the logs of our application we don't get an error but the following information:
[PROVISIONING] - Dependent applications/services: [ { xsappname: 'xsappname-app2' } ]

Is the scenario possible to subscribe two SaaS application with one click or do we missunderstand the documentation?

Regards

Johannes

Accepted Solutions (0)

Answers (2)

Answers (2)

jesypuri
Discoverer
0 Likes

Hi, I know this a very old question but did you ever find solution to this problem? Thanks

jreimann
Participant
0 Likes
0 Likes

Hello reimannj ,I am working on deploying Multi-tenancy Spring boot application in SAP CF,I am facing the same issue which you are facing.I have implemented the contents in the link you mentioned,but the error still remains same,Could you please help me with this ?

Regards,

Singamsetty Maruthi Srinivas

jreimann
Participant
0 Likes

Hi maruthi.srinivas.singamsetty,
unfortunately I haven't had a chance to try it out yet. But I have it on my list. I will keep you posted as soon as I have new findings.

Regards
Johannes