Hi
I try to call a procedure on my API page, but keep getting 404 error in return.
URL is fine as if I remove the procedure call, and set DELETE record is deleted.
Call to API is triggered from PowerShell.
Environment is a BC SaaS sandbox.
I miss to get last part of URL right I believe or ?
I use this URL and GET.
"/v2.0/{0}/{1}/api/MyVendor/EnvCopyAPI/beta/companies({2})/CopyCompSettings({3})/Myprocedure"
Page procedure:
[ServiceEnabled]
[Scope('Cloud')]
procedure Myprocedure (var actionContext: WebServiceActionContext)
var
MyRec: Record Copy_CompSettings;
begin
if MyRec.FindFirst() then begin
MyRec.DeleteAll();
actionContext.SetResultCode(WebServiceActionResultCode::Deleted);
end;
end;
/P