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

ODAta action method on entity to call standard method

(0) ShareShare
ReportReport
Posted on by

Hi Team,

I want to know how I can call a standard method in a customised odata action method in a entity so that a third party can call that action and execute the standard method in f&o.

please help.

thanks

I have the same question (0)
  • Suggested answer
    huijij Profile Picture
    19,811 on at

    Hi Karuna,

    I'm afraid the standard method is not allowed to be called by OData.

  • Mariano Gracia Profile Picture
    on at

    You can write a static method in a customized entity and publish it as an OData function (in that function you can call a standard method), you can also add the necessary parameters into the function, you'll be able to test the function using Postman, the question is:

    1. Do you know how to create entities?
    2. Do you know how to publish OData functions?
    3. Do you know how to call OData functions? 
  • Karuna Dogra Profile Picture
    on at

    Thanks for responding,

    Yes this is what I want to achieve. I will create a static method in my entity and then inside that method I want to call a standard class’s method.

    However there is one issue, the standard method which I want to call takes formdatasource as parameter. I want to convert recid (which I have) into formdatasource format and pass it as argument to that standard method.

    Could you help how that can be achieved.

    Thanks

  • Mariano Gracia Profile Picture
    on at

    You cannot pass objects to the OData function, but as you say the input parameter should be the RecId, but I don't know how to create the datasource and move the cursor to the desired record, I've never tried it, what function are you trying to call?

  • Karuna Dogra Profile Picture
    on at

    The class name is whsUnshipLoadLineForm and the method is unship()

  • Martin Dráb Profile Picture
    238,738 Most Valuable Professional on at

    Please don't start the same discussion again, especially not in a thread about a different thing.

    The question of WhsUnshipLoadLineForm is already being discussed in Converting a recid to formdatasource format.

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
André Arnaud de Calavon Profile Picture

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

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 309

#3
Diego Mancassola Profile Picture

Diego Mancassola 259

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans