Notifications
Announcements
No record found.
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
Hi Karuna,
I'm afraid the standard method is not allowed to be called by OData.
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:
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
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?
The class name is whsUnshipLoadLineForm and the method is unship()
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 451 Most Valuable Professional
André Arnaud de Cal... 428 Super User 2025 Season 2
BillurSamdancioglu 239 Most Valuable Professional