on ‎2023 Aug 29 7:31 AM
Hello Everyone ,
I am calling backend system using executeHttpRequest (SAP Cloud SDK) via destination which is working fine.
My requirement is to make multiple calls in one go
I am thinking to combine multiple calls using batch or Promise.all
If there any other best way to do . Kindly let me know if there any example I can refer.
Thanks in advance
Request clarification before answering.
Batch is the only way to send multiple requests to an oData service in one roundtrip. Promise.all will send multiple requests. You would be better off using the ready support from Cloud SDK instead of rolling out own solution for batching.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @gregorw ,
I tried to implement batch call using Batch Requests using SAP cloud sdk link : https://sap.github.io/cloud-sdk/docs/js/features/odata/v2-client#batch-requests but i am facing the error when i trying to call the batch () . I have also configure the BTP destination in package.json , but still facing an error PFB screen shots,
Package.json file.
service.js file
error i am facing ..
Please suggest me and verify it how to resolve this error.
Please let me know if you need any more information.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.