I tried to return Text in Business Central Bound Action but in the Odata the api is not seen, when I removed the return type it is seen. Is there any way? Below is my code.
[ServiceEnabled]
procedure CreateOrder(var ActionContext: WebServiceActionContext) : Text
var
ProductConfigurationMgt: Codeunit "Product Configurator Mgt.";
begin
ProductConfigurationMgt.CreateSalesOrderDocument(Rec);
ActionContext.SetObjectType(ObjectType::Page);
ActionContext.SetObjectId(Page::"Example API");
ActionContext.AddEntityKey(Rec.FieldNo(SystemId), Rec."No");
ActionContext.SetResultCode(WebServiceActionResultCode::Created);
exit('Success');
end;