How to access remote service Draft table.I'm able to access draft in EmployeeService. but not able to access when called remotely from different service.
Remoteservice = await cds.connect.to('EmployeeService').
const Employee = await Remoteservice .run(
SELECT.from('EmployeeService.drafts')
.columns(a => {
a.WorkingStatus_code }))
Error Details
Error during request to remote service:
'drafts' is not an entity set, a singleton, an action import, or a function import.
I Tried with upper case and lower case. Still getting the error.
Please help.
Request clarification before answering.
Hi Kuchappan,
Draft tables are local to a service and cannot be accessed from outside. You would need to send the respective OData requests (as the UI does).
Best,
Sebastian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.