on 09-16-2020 3:17 PM
To clarify, your script is an XSJS(Server Side JavaScript) which has no relation whatsoever with Service Layer.
If you are looking for just querying the DB and having the results as sa rest service using Service Layer you can use the query service.
Other approach would be to have the query encapsulated on a SQL view and have the view exposed.
Both are detailed in the Working with SAP Business One Service Layer official guide
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.