web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Odata action method on Entity extension in D365FO

(2) ShareShare
ReportReport
Posted on by 846

Hi team,

I have gone through the below thread for Odata action method 

https://community.dynamics.com/forums/thread/details/?threadid=20514c0e-f12e-ef11-840b-7c1e521c042d

 

As Anthony said “OData actions are runnable code, so imagine you had some business logic attached to the data entity which you needed to run, or some data you needed to retrieve which was not a simple query it required some X++ code.”

 

So, here my question is

1.Can we create Odata action method on Entity extension and Custom entity?

2.How to call the Odata action method. Is it through Power automate, Postman tool etc 

Pls advise, thanks

 

Categories:
I have the same question (0)
  • Verified answer
    Subra Profile Picture
    2,101 Super User 2026 Season 2 on at

    Hi @CU10121822-0 

    Yes, It's possible to create Odata action in both custom entity and standard entity using extension as well.

    You can consume action method through power autoomate and postman tool as well.

    Thanks,
    Subra

    If this helped, please mark it as "Verified" for others facing the same issue



     

  • Verified answer
    Subra Profile Picture
    2,101 Super User 2026 Season 2 on at

    Hi @CU10121822-0 

    Additionally, you can refer the below one for Odata action call through postman.

    https://www.linkedin.com/pulse/performing-odata-actions-finance-operations-using-postman-sheokand/

    Thanks,
    Subra

    If this helped, please mark it as "Verified" for others facing the same issue

  • CU10121822-0 Profile Picture
    846 on at

    I think Subra, we can not add odata action method on Entity extension. 

     

    We should create a duplicate that entity instead of extension.

    Am I correct?

    Pls advise, thanks 

  • Verified answer
    Anton Venter Profile Picture
    21,129 Super User 2026 Season 2 on at

    @CU10121822-0 

    You wrote: we can not add odata method on Entity extension. Tell us why you say this. By the way, you have to be a bit careful when duplicating standard data entities or any object for that matter. Only do so if there is absolutely no other choice. I highly recommend extending first. Can you explain the business requirements for the method? What should it do?

  • CU10121822-0 Profile Picture
    846 on at

    Hi Anton, I read in some blogs somewhere, exactly not remember. So, this was my assumption not sure also.

    Any way extending object is always recommended first , if not then we think about duplicate.

     

     

     

     

  • Subra Profile Picture
    2,101 Super User 2026 Season 2 on at

    Hi @CU10121822-0 

    Please let us know if you need any additional information on this.

  • Martin Dráb Profile Picture
    240,414 Most Valuable Professional on at

    By the way, there is a third alternative to extending an entity and duplicating an entity. You can create your own entity not as a copy of the standard entity, but using the standard entity as a data source.

     

    If you duplicate a standard entity, you become responsible for keeping your copy synchronized for the whole lifetime of the project. Otherwise your copy will miss bug fixes and improvements added by Microsoft to the standard entity.

     

    Using the standard entity as a data source (rather then duplicating it) means that you don't have to maintain the code; you're simply using the standard one. There are still some cases that needs maintenance, though, such as when Microsoft add fields.

  • Anton Venter Profile Picture
    21,129 Super User 2026 Season 2 on at

    @CU10121822-0 

    Ah okay. 

    That's a good tip @Martin Dráb ! I didn't know that.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
SajeedMullaji Profile Picture

SajeedMullaji 494

#2
Martin Dráb Profile Picture

Martin Dráb 291 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 267 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans