Skip to content

Commit 409dd61

Browse files
add top(1) to call to bussinessPartnerAPI (#1967)
without it I get: "statusCode":500,"message":"Failed to get business partners - get request to https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER failed! "} Also noted here: SAP/cloud-sdk-js#2896 Co-authored-by: Zhongpin Wang <[email protected]>
1 parent e05bc57 commit 409dd61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs-js/tutorials/getting-started/2-execute-odata-request.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ async getAllBusinessPartners(): Promise<BusinessPartner[]> {
214214
return await businessPartnerApi
215215
.requestBuilder()
216216
.getAll()
217+
.top(1)
217218
.addCustomHeaders({ APIKey: '<YOUR-API-KEY>' })
218219
.execute({
219220
url: 'https://sandbox.api.sap.com/s4hanacloud'

0 commit comments

Comments
 (0)