Dears, Kindly need your help
Could I remove (id, rownumber and note ) from response? How?
Could I return InventoryId:Ac316 direct not like object? How?
Best answer by andriikravetskyi35
View originalDears, Kindly need your help
Could I remove (id, rownumber and note ) from response? How?
Could I return InventoryId:Ac316 direct not like object? How?
Best answer by andriikravetskyi35
View originalI’m not sure I can help much more than to point you to the Acumatica documentation for Rest API. There may be some limitations to what you can return. If you would post the code where you are making the API requests, perhaps someone could help you parse out the values you need.
That can represent every InventoryCD with array of SitedCD
Thanks
I don't believe I can help you do what you're asking, but maybe you could explain why you can only have a single value and we could try to figure out a way to get around that.
if you want to remove item, you can send DELETE request to StockItem endpoint, Acumatica REST API support all types of requests. Also you can extend Default endpoint and add needed actions to endpoint like on screen shot:
Thanks for your help, But we are already using $select . You can check attached file.
I need to remove (id, rownumber and note ) from response
You can append $select=InventoryID at the end of your GET/POST URL to filter out specific fields that you want returned from the API call.
Example:
https://{{baseUrl}}/entity/Default/20.200.001/StockItem/100-000001?$select=InventoryID
Now, this will still return JSON with a value field within the Inventory object. One suggestion is to create a generic type that can help you deserialize the object.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.