I'm working on enabling POST operations for SalesInvoiceHeadersV2 and SalesInvoiceV3Lines to create invoice journals using the OData API. These entities are part of the Application Suite model. To allow POST operations, I need to duplicate the entities and change the ReadOnly field in the properties section to No.
However, I've hit a roadblock. After creating a project in Visual Studio and duplicating the entity, I can't save the project because Application Suite isn't authorized for modification. Through further research, I learned that I can modify the entities if I create a new model based on Application Suite and extend them.
My main confusion lies in how to modify the ReadOnly field to allow POST operations. Could you please point me in the right direction or share any helpful documentation?
I've already checked these documents, but they haven't provided much help:
- https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/build-consuming-data-entities
- https://dhruvrthakar.blogspot.com/2019/06/how-to-create-duplicate-data-entity-in.html
I've also gathered information from posts in this forum. Any assistance would be greatly appreciated.
Thank you in advance!