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

Call SAP API Business Hub API from a SAPUI5 Application

0 Kudos
916

Hi there

I try to build UI5 app using data from SAP SuccessFactors API

in the select an API , I selected the SAP API Business Hub as the source system but I can't select the API user manager . I followed the steps of this tutorial :

https://developers.sap.com/tutorials/hcp-abh-api-ui5-app.html

View Entire Topic
mariusobert
Developer Advocate
Developer Advocate
0 Kudos

Hi Fattouma,

this tutorial is a little bit outdated as it shows the old wizard to create UI5 apps. Please use the newer wizard (the one showed in this tutorial) and select "Connect to SAP API Business Hub" when being prompted for the data source.

I'll also ask a colleague to update the tutorial. Thanks for bringing this to my attention.

0 Kudos

Hi mariusobert !

Thanks so much for accommodating to my reque , its working now !

But please mariusobert I want to know something, how can I consume data from third party services such as "hubspot" using open Connectors from SAP INTEGRATION SUITE in SAP Busniess application studio like this tutorial :

https://blogs.sap.com/2018/09/20/part-3-easily-consume-data-from-third-party-in-a-fiori-application-...

mariusobert
Developer Advocate
Developer Advocate
0 Kudos

Yes, that's possible too. I'm afraid a full explanation to this general question would be too much here. The short answer is, that you need to follow the same practice as the web app that you created with the wizard for the API Business Hub. But it shouldn't be too hard when you understand what the generated project does.

Be aware that you should NOT store the key on the client side (as shown in the post you linked). This is ok for demos but not for production apps

0 Kudos

Thanks for your response mariusobert and I get what you mean , it's not a general question , I just need to do the same thing

https://blogs.sap.com/2018/09/20/part-3-easily-consume-data-from-third-party-in-a-fiori-application-.../

but using SAP BUSNIESS APPLICATION STUDIO !

I need to know the setps that would be vary for the CF !

I want this result but using SAP BUSNIESS APPLICATION STUDIO !

ptw044
Explorer
0 Kudos

Hi fatouma,

I am also trying to access API from API business hub but I am getting below error

"Failed to resolve API Key variable request.header.apikey"

Could please tell me where to pass apikey in UI5 project?

Regards

Prakash