Skip to main content

Notifications

Announcements

No record found.

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
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,605 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 131 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,587 Super User 2024 Season 1 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,901 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.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,904 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,605 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans