In D365 F&O is there a way to Post a Trade Agreement Journal via an API? I can create the header, and add the lines but is there a way to actually post all the lines via an API without clicking the Post button in the GUI?
How do auto Post a Trade Agreement Journal via API
I'm not aware of any existing solution, but you surely can create one. You have several options.
One of them is using custom services, as already mentioned. It's basically a way to create web services for remote procedure calls, either via pure HTTP (REST-like) or SOAP.
A similar approach is creating an OData action. That's again a RPC, but it uses OData and the logic is included directly in a data entity. That makes it easier to discover and use, e.g. it's support by virtual entities / Dataverse connector. Just note that you can't add OData action to entities through extensions; you'll need your own entity.
You may also have an entity that always posts a journal after importing. Then you can write code directly in the data entity, instead of creating a new endpoint to call.
How do auto Post a Trade Agreement Journal via API
i think, posting option is not available out-of-the-box.. you might need to do small customization to post once the agreement is created via integration.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.