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

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
    237,967 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

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 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans