Skip to Content
0
Sep 15, 2023 at 10:33 AM

Access Draft table in a remote service

284 Views

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.