on 2023 Dec 21 5:42 AM
Hello Experts,
i am trying to use the new bypass_draft feature in cap version 7.5.0.
https://cap.cloud.sap/docs/releases/dec23#sapui5-mass-edit
https://cap.cloud.sap/docs/releases/changelog/#dec-23-added
Unfortunately the POST request did not work and the created entity is not activated but is a draft.
I did as in the changelog and added the feature flags and then executed a post request.
Package.json
"cds": {
"fiori": {
"lean_draft": true,
"bypass_draft": true
}
}
POST Request:
POST http://localhost:4004/odata/v4/orders/Orders HTTP/1.1
Content-Type: application/json
{"OrderNo":"3","buyer":"test@test.de","IsActiveEntity": true}
I try to use it in my GitHub Repo and here is the PR which i created for it:
https://github.com/marianfoo/ui5-cc-spreadsheetimporter/pull/438/files
Anything i did wrong in the config or http request?
Cheers
Marian
Request clarification before answering.
Fixed with @sap/CDs Version 7.5.3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
11 | |
8 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.