Skip to main content

Notifications

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
  • Verified answer
    Martin Dráb Profile Picture
    232,866 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
    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
    3,624 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
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans