Hi,
I created a Codeunit in AL which contains the procedure "ReleaseSalesOrder" and exposed the Codeunit through a webservice called "SoExtFuncs". I have done this with many other codeunits before but for some reason this time i continue to receive "segment not found" when trying to access this function.
The url i attempt to access the procedure through is the following:
[POST <url prefix>/sandbox/ODataV4/SoExtFuncs_ReleaseSalesOrder?company=<companyId>
The codeunit and procedure are the following:
codeunit 50154 "So Ext Func"
{
var
myInt: Integer;
release: Codeunit "Release Sales Document";
procedure ReleaseSalesOrder(id: Text): Record "Sales Header"
var
SHR: Record "Sales Header";
begin
SHR.GetBySystemId(id);
release.PerformManualRelease(SHR);
exit(SHR);
end;
}
The webservice exposed:
Error:
Resource not found for the segment 'SoExtFuncs_ReleaseSalesOrder'.