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
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.
The class name is whsUnshipLoadLineForm and the method is unship()
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?
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 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:
Hi Karuna,
I'm afraid the standard method is not allowed to be called by OData.
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,817
Most Valuable Professional
nmaenpaa
101,156