cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting Datasphere to Salesforce using Generic HTTP connection and API Task

08-26-2025 3:34 PM
Dip25 Discoverer
2597 views 5 comments
0 Likes
SAP Managed Tags
Subscribe

Hi All,

We are trying to connect to Salesforce using the Generic HTTP connection along with the API Task feature. We have confirmed by sending request through Postman that access token is getting generated successfully using the same connection details as configured in the Generic HTTP connection shown in the below screenshot:

Dipankar_Sanyal_0-1756214185996.png

But while using the same connection in API Task to connect to Salesforce we are getting "Failed to fetch the access token" error while doing a API Test Run. We are using the following Generic API settings within the API Task:

Dipankar_Sanyal_1-1756214924254.png

Would like to know if anything needs to be done differently to make the API Task function as expected.

Regards,

DS

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

PrabhithPrabhakaran
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello @Dip25 

Were all the pre-requsites mentioned in the link met?

https://help.sap.com/docs/SAP_DATASPHERE/c8a54ee704e94e15926551293243fd1d/9a8489ed7443436197fbd8b8ff...

On a side note, open connectors seems to a common method that customers use to connect DSP and Salesforce. I strongly believe there might be some specific reason why you are chasing the Generic HTTP connection method.

Open Connectors 

BR, Prabhith

klorn_pallier
Explorer
0 Likes
I've never connected via this method but we have connected to Salesforce successfully using the Open Connectors in BTP if it helps.
Dip25
Discoverer
0 Likes
Yes all the pre-requisites were met and we had a raise an incident with SAP and finally the issue got fixed and we could establish connectivity with Salesforce using the HTTP connector and the API task
niels1515
Participant
0 Likes
Hi @Dip25, did you found some documentation on how to use the api task Chain?