ServiceEnabled attribute

Version: Available or changed with runtime version 2.0.

Exposes a method to the service.

Applies to

  • Method

Syntax

[ServiceEnabled]

Example

    [ServiceEnabled]
    procedure Post(var ActionContext: WebServiceActionContext)
    var
        SalesHeader: Record "Sales Header";
        SalesInvoiceHeader: Record "Sales Invoice Header";
    begin
        GetDraftInvoice(SalesHeader);
        PostInvoice(SalesHeader, SalesInvoiceHeader);
        SetActionResponse(ActionContext, SalesInvoiceHeader.Id);
    end;

Get Started with AL
Developing Extensions