web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How do auto Post a Trade Agreement Journal via API

(0) ShareShare
ReportReport
Posted on by 131
Hi folks,
 
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? 
 
At the moment I am testing in Postman.
 
Thank you.
 
Michael
I have the same question (0)
  • MuthukumaranAX Profile Picture
    2,903 on at
    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.
  • Verified answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    You can use a custom service for the same.
  • Michael Hutcheson Profile Picture
    131 on at
    When you say custom service, what exactly does this mean?
  • Verified answer
    Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at
    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.
     
     

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans