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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

OData action method with parameter true or false

(3) ShareShare
ReportReport
Posted on by 1,323
Dear team,
 
Recently I worked on ODATA action method. So, I have found it should be decorated with SysODataActionAttribute("OurODataActionMethodName", true or false)]
 
 
Please let me know when to use true or false as a parameter.
 
Please advise.
 
Thanks!
Categories:
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    239,029 Most Valuable Professional on at
     
    true or false tells you nothing indeed, but you can easily find more about what the parameter means.
     
    First of all, look at its name: it's _isInstanceMethod.
     
    Then you can find more details in XML documentation inside the class:
    /// True – action is bound to an entity instance
    /// False – action is static, i.e. bound to an OData entity set
  • CU05031448-0 Profile Picture
    1,323 on at
    Thanks Martin
     
    Actually do search and found the OData action and Custom services both APIs we exposed with Third party application.
     
    1. Is there any specific difference between both ?
    OR both are almost same. We can use any one of them.
    .
    2. As you mentioned "_isinstanceMethod" is any property to set?
     
    Here instance means is it worked for any particular record.
     
    And non instance , I mean static, is it worked globally.  Is it worked something like this?
     
    Kindly advise pls. Thanks 
  • Martin Dráb Profile Picture
    239,029 Most Valuable Professional on at
    1. This is not related to the topic of this thread. Please create a new thread for this question, if you fail to find the answer by using a web search engine.
    2. If we forget OData for now, do you know what static and instance method mean in object-oriented programming?
  • Verified answer
    Sohaib Cheema Profile Picture
    49,677 Super User 2026 Season 1 on at
    Hi,
    Here in this blogpost, I have provided an example for both:
  • CU05031448-0 Profile Picture
    1,323 on at
    That's what I am looking for. Thanks a lot Sohaib 
  • Sohaib Cheema Profile Picture
    49,677 Super User 2026 Season 1 on at
    Hi,
    You should not mark my answer as verified. My answer was not suggested (with checkbox).
    you may want to un-verify my answer and choose the one provided from Martin as verified.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans