cancel
Showing results for 
Search instead for 
Did you mean: 

Access Draft table in a remote service

09-15-2023 12:33 PM
kuchappan Member
826 views 2 comments
0 Likes
SAP Managed Tags
Subscribe

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.

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

vansyckel
Product and Topic Expert
Product and Topic Expert
0 Likes

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