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, ...
Suggested Answer

Create POST action on Entity

(0) ShareShare
ReportReport
Posted on by 5

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!

I have the same question (0)
  • Suggested answer
    Satish Panwar Profile Picture
    14,671 Moderator on at

    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.

  • Suggested answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    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

  • Suggested answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    You can call this action using odata when you finish loading journals.

  • WillWU Profile Picture
    22,361 on at

    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 ()
            {
            ...
             }
    }

  • Suggested answer
    Satish Panwar Profile Picture
    14,671 Moderator on at

    Hi Mani99,

    Here is a link that shows the actual details that you can leverage.

    vishwad365fo.blogspot.com/.../testing-odata-actions-in-d365.html

  • mani99 Profile Picture
    5 on at

    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.

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
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans