cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure a IP range to consume an API in SAP Build Apps

rgonzalez
Explorer

Hello community,

I´m trying to consume a SuccessFactors API with basic authentication, however, IPs must be configured to be able to communicate with the system, against this, I read this documentation:

https://help.sap.com/docs/btp/sap-business-technology-platform/regions-and-api-endpoints-available-f...

I enter all the IPs for my region and in SAP BTP Destinations I get a successfull message:

But when I try to consume data in Build Apps, I get this message:

Can someone help me to configure a correct IP range?

Thanks!

PrashantJayaram
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Richard, would the following link be helpful to you?

https://help.sap.com/docs/build-apps/service-guide/sap-systems

In particular I'm curious whether you've tried the "Add Integration" option instead of the "classic data entities" option.

rgonzalez
Explorer
0 Kudos

Hi Prashant,

I configured the same IPs as in the previous case, I get a successful message "200: OK" in BTP Destinations:

However, in the SAP Build Apps tester I have the same issue in the Add integration option:

Do you know another alternative?

PrashantJayaram
Product and Topic Expert
Product and Topic Expert
0 Kudos

Interesting. Could it have something to do with Basic Auth being deprecated for SuccessFactors API?

https://help.sap.com/docs/SAP_SUCCESSFACTORS_RELEASE_INFORMATION/8e0d540f96474717bbf18df51e54e522/fc...

End of maintenance was a month and a half ago. Maybe it's best to switch to OAuth 2.0:

https://help.sap.com/docs/SAP_SUCCESSFACTORS_PLATFORM/d599f15995d348a1b45ba5603e2aba9b/d9a9545305004...

However, here's another guess: when the connection is being checked in BTP, it may be accessing a different set of OData than Build Apps is trying to access. Your user may have access to the former set of data but not the latter. So maybe your user needs to be given additional access privileges in the SuccessFactors admin console.

Unfortunately I don't have admin access to any SuccessFactors tenant, so I can't test this theory myself. (I'm also not on the Build development team, or Build product team, just fyi. So I don't have access to the Build Apps internals.)

You may gain some additional insight by using the Google Chrome developer tools' Network tool (or the equivalent in your browser of choice), and looking at the Headers and Response for when you click the destination in Build Apps.

rgonzalez
Explorer
0 Kudos

Hi, Prashant

No, I can consume data with basic authentication in another SuccessFactors instances, also, I was proving this process in a deployed app and it works perfectly, so the IP range of the cloud foundry spaces is ok when the app is already in production.

I need the IP range of the Build Apps Service, I hope that someone in SAP could help me.

Thanks for your help!

Accepted Solutions (0)

Answers (1)

Answers (1)

merituulimelkko
Product and Topic Expert
Product and Topic Expert
0 Kudos

I don’t know about the correct IP ranges to set for Build Apps to be able to detect your schema correctly, but as a workaround you could try using the direct HTTP Request flow function instead of having a data integration, as that would make the request on the device you are then using instead of on our servers.

rgonzalez
Explorer
0 Kudos

Hi Merituuli,

Thanks for your help, however, that solution would involve more development time, I hope someone else can help me with the IP range.