I would like to know what are the advantages and disadvantages of using custom service vs odata action.
For example:
1. Is there a difference in performance?
I have this odataAction already implemented:
[SysODataActionAttribute('Test', true)]
public void test(Reference _ref)
{
Table1 table1 = Table1::find(this.Id, true);
Class1 class1 = Class1::newFromReference(table1, _ref);
class1.runOperation();
}
what this runOperation does is that it updates two tables with some logic
this odataAction or custom service, will be called by the middle ware, and it will be called alot during the day
5. So what would you advice in this case?
I already read this useful article, but i would like to hear your thoughts
https://markedcode.com/index.php/2022/11/18/d365-x-odata-actions/