cancel
Showing results for 
Search instead for 
Did you mean: 

EHS Integration with SAP BTP

08-21-2023 1:58 PM
510 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

Hello all ,

I'm facing issue with Integration of EHS it is external service which we are consuming in our SAP BTP environment via destination for that we have created destination in our environment and we are able to read the data inside that service but while making a post call we are getting error like "failed to load remote service" .

firstly we are trying to fetch csrf token cause it is must for making post call but unable to store csrf token cause code directly executing catch block instead of try so how can we generate csrf token and make a post call to external service .

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

martinstenzig
Contributor
0 Likes

If you are using CAP properly you don't need to "manually" get the CSRF token. Here is how you would enable CAP to handle CSRF for you: https://cap.cloud.sap/docs/node.js/remote-services#csrf-token-handling

As for EHS API's. We used them successfully from CAP in the past without problems. Feel free to share a cleaned up repo with the community and we might be able to give you additional hints as to what your challenge might be.