Notifications
Announcements
No record found.
Hi all,
Is there a way of creating an Action on an entity which would allow the POST process to be triggered? We are loading data via OData and are having to manually POST journals via the UI after the load, which is something that we want to avoid.
Any suggestions would be appreciated.
Thanks!
Hi Mani,
One option is to create a web service. See link below (on-demand posting):
community.dynamics.com/.../how-to-post-ledger-journals-via-web-services
Another option is to create a batch job with in D365 and run it on recurring basis (periodic posting).
If you are using data entities and there is a flag that you can send that can trigger that journals is fully created and ready to be posted, you can write additional code on the data entities method and then try to post after data import is completed.
You can write action on data entities where you can do posting and call that action . Take a look at below link.
docs.microsoft.com/.../odata
You can call this action using odata when you finish loading journals.
Hi mani99,
Do you wan to do it on standard data entity?
Create a separate class and then decorating the method with the SysODataActionAttribute attributes.
[ExtensionOf(tableStr())] final class _Extension { [SysODataActionAttribute("", true)] public static void () { ... } }
Hi Mani99,
Here is a link that shows the actual details that you can leverage.
vishwad365fo.blogspot.com/.../testing-odata-actions-in-d365.html
Thanks all, we will soon try some of these suggestions. I'll update once we have.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 503 Most Valuable Professional
André Arnaud de Cal... 434 Super User 2025 Season 2
BillurSamdancioglu 278 Most Valuable Professional