Skip to Content
1
Dec 05, 2022 at 06:20 PM

How to consume SAP Graph API in SAP CAP Extension Project

182 Views

Dear Team,

I'm trying to consume the SAP Graph HCM solution in my SAP CAP extension application.

To achieve the same, I have create the destination for SAP Graph (OAuth2JWTBearer) using Graph service client Id and Client secret details.

But, When I'm consuming the same in my SAP CAP Node.js using external API Consume approach, I'm getting "No Database connection" Issue.

BTP Subaccount Destination

image.png

Package.json Configuration:

image.png

Custom handler.js file:

image.png

image.png

image.png

Attachments

image.png (92.3 kB)
image.png (49.9 kB)
image.png (18.4 kB)
image.png (46.3 kB)
image.png (392.2 kB)