Skip to main content

Notifications

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

  • Martin Dráb Profile Picture
    Martin Dráb 230,817 Most Valuable Professional on at
    RE: ODAta action method on entity to call standard method

    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.

  • Karuna Dogra Profile Picture
    Karuna Dogra on at
    RE: ODAta action method on entity to call standard method

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

  • RE: ODAta action method on entity to call standard method

    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
    Karuna Dogra on at
    RE: ODAta action method on entity to call standard method

    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

  • RE: ODAta action method on entity to call standard method

    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? 
  • Suggested answer
    huijij Profile Picture
    huijij 19,811 on at
    RE: ODAta action method on entity to call standard method

    Hi Karuna,

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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans