Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / How do auto Post a Tra...
Finance forum
Answered

How do auto Post a Trade Agreement Journal via API

Posted on by 125
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
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 228,177 Most Valuable Professional on at
    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.
     
     
  • Michael Hutcheson Profile Picture
    Michael Hutcheson 125 on at
    How do auto Post a Trade Agreement Journal via API
    When you say custom service, what exactly does this mean?
  • Verified answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,538 Moderator on at
    How do auto Post a Trade Agreement Journal via API
    You can use a custom service for the same.
  • MuthukumaranAX Profile Picture
    MuthukumaranAX 2,899 on at
    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.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,339 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,177 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans