AI Agent Studio Query on Child Attribute fails if used without fields
Summary:Hi, We have created an agent that uses the Business object purchaseOrders as follows
https://<Instance>.oraclecloud.com/fscmRestApi/resources/11.13.18.05/purchaseOrders?q=lines.Item='ItemName'&onlyData=true
The above works perfectly fine and gives us data as follows
{ "items": [{}],"count": 25, "hasMore": true, "limit": 25, "offset": 0, "links": [ { "rel": "self", "href": "https://ejtp-test.fa.em2.oraclecloud.com:443/fscmRestApi/resources/11.13.18.05/purchaseOrders", "name": "purchaseOrders", "kind": "collection" } ]}
Where as if we add fields list as shown below, We do not see any results.
https://<instance>.oraclecloud.com/fscmRestApi/resources/11.13.18.05/purchaseOrders?q=lines.Item='ItemName'&fields=Status,ProcurementBU,OrderNumber&onlyData=true
{ "items": [], "count": 0, "hasMore": false, "limit": 25, "offset": 0, "links": [ { "rel": "self", "href": "https://ejtp-test.fa.em2.oraclecloud.com:443/fscmRestApi/resources/11.13.18.05/purchaseOrders", "name": "purchaseOrders", "kind": "collection" } ]}