Priority-Based Throttling in Microsoft Dynamics 365 Finance and Operations (F&O, SCM) is almost mandatory! If your solution or integration architecture included the transaction orchestration being done outside of F&O (multiple OData calls within a transaction; rollback means making more OData calls), one of the things you can do to adjust it is to create a custom web service in F&O, which would handle an entire transaction.
It is easy to develop a custom web service in F&O by creating the following objects:
When you want to have a list of objects, you create a DataContract class and return it as a list (see line 22 below).
Ugh, what are these unnecessary $id fields?
Rid yourself of this unnecessary data and bandwidth hog- Use the following decorator on your contract classes to remove those (as seen in above screen shot).
[Newtonsoft.Json.JsonObjectAttribute(IsReference = false)]
The post Remove $id from Custom Web Service JSON – Dynamics 365 F&O appeared first on Dag Calafell, III.
Original Post https://calafell.me/remove-id-from-custom-web-service-json-dynamics-365-fo/