on 2023 May 22 8:29 AM
Request clarification before answering.
Thank for your reply,
I have check on what you give above but i have read it and i don't really understand on 3.7.10.1 Metadata for Query Service.
/b1s/v1/QueryService_PostQuery
{
"QueryPath": "$crossjoin(Orders,Orders/DocumentLines)",
"QueryOption": "$expand=Orders($select=DocEntry, DocNum),Orders/DocumentLines($select=ItemCode,LineNum)&$filter=Orders/DocEntry eq Orders/DocumentLines/DocEntry and Orders/DocEntry ge 3 andOrders/DocumentLines/LineNum eq 0"
}
and I got error message from API.
{
"error": {
"code": 201,
"message": {
"lang": "en-us",
"value": "Not supported query option"
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
which version are you using? Because I get a good response...
POST /b1s/v1/QueryService_PostQuery
BODY
{ "QueryPath": "$crossjoin(Orders,Orders/DocumentLines)", "QueryOption": "$expand=Orders($select=DocEntry, DocNum),Orders/DocumentLines($select=ItemCode,LineNum)&$filter=Orders/DocEntry eq Orders/DocumentLines/DocEntry and Orders/DocEntry ge 3 and Orders/DocumentLines/LineNum eq 0" }
Response:
{
"odata.metadata" : "$metadata#Collection(Edm.ComplexType)",
"value" : [
{
"Orders" : {
"DocEntry" : 177,
"DocNum" : 75
},
"Orders/DocumentLines" : {
"ItemCode" : "23",
"LineNum" : 0
}
},
{
"Orders" : {
"DocEntry" : 209,
"DocNum" : 94
},
ETC
],
"odata.nextLink" : "QueryService_PostQuery?$expand=Orders($select=DocEntry, DocNum),Orders/DocumentLines($select=ItemCode,LineNum)&$filter=Orders/DocEntry eq Orders/DocumentLines/DocEntry and Orders/DocEntry ge 3 and Orders/DocumentLines/LineNum eq 0&$skip=20"
}
BR,
User | Count |
---|---|
87 | |
13 | |
10 | |
5 | |
4 | |
4 | |
3 | |
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.