on 02-25-2021 5:00 AM
Hello, I wanted to implement new Service Layer - SQL Querying feature, which was introduced recently
https://blogs.sap.com/2021/01/08/new-sap-business-one-service-layer-sql-query/
I created SQL Query like
POST
https://51.15.155.70:50000/b1s/v1/SQLQueries
{"SqlCode":
"sql09","SqlName":
"queryOnItem11811111","SqlText":
"select TOP 1 ItemCode, ItemName, ItmsGrpCod from oitm"}
It was created successfully
Then i retrieved query like
GET https://myserver:50000/b1s/v1/SQLQueries('sql09')
and it was successful too
BUT when i tried to retrieve list of results
GET
https://myserver:50000/b1s/v1/SQLQueries('sql09')/List
I got this error 502 Proxy error
Has anyone faced the same problem? How can i solve it?
I thought that the reason is that response contains many rows, so tries the following
1. Created query with TOP 1 to ensure that i'm gettin only 1 row
2. Added page size into header of GET query like Prefer: odata.maxpagesize=5 and Content-Type: application/json; charset=UTF-8; Tried to add each header separately, and both headers into query
3. Tried with POSThttps://myserver:50000/b1s/v1/SQLQueries('sql09')/List
Thank You in advance!
Dear masharipovfarrux,
This issue was forwarded to our Development Team and has been documented in SAP Note 3029055 which will be released soon.
The issue is supposed to be fixed in Feature Package 2105 of SAP Business One Version 10.0. Be advised that the time-frame is subject to change without any further notice.
If you do not have any further question, kindly help to close this thread.
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
10 | |
9 | |
6 | |
3 | |
3 | |
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.