Share via


Table "Service Header"

ID 5900
Namespace: Microsoft.Service.Document

Properties

Name Value
Caption Service Header
DataCaptionFields 3,79,5902
DrillDownPageID Page Microsoft.Service.Document."Service List"
LookupPageID Page Microsoft.Service.Document."Service List"
Permissions TableData "Loaner Entry" = d, TableData "Service Order Allocation" = rimd
DataClassification CustomerContent

Fields

Name Type Description
"Document Type" Enum Microsoft.Service.Document."Service Document Type"
"Customer No." Code[20]
"No." Code[20]
"Bill-to Customer No." Code[20]
"Bill-to Name" Text[100]
"Bill-to Name 2" Text[50]

Specifies an additional part of the name of the customer that you send or sent the invoice or credit memo to.

"Bill-to Address" Text[100]
"Bill-to Address 2" Text[50]
"Bill-to City" Text[30]
"Bill-to Contact" Text[100]
"Your Reference" Text[35]
"Ship-to Code" Code[10]
"Ship-to Name" Text[100]
"Ship-to Name 2" Text[50]
"Ship-to Address" Text[100]
"Ship-to Address 2" Text[50]
"Ship-to City" Text[30]
"Ship-to Contact" Text[100]
"Order Date" Date
"Posting Date" Date
"Posting Description" Text[100]
"Payment Terms Code" Code[10]
"Due Date" Date
"Payment Discount %" Decimal
"Pmt. Discount Date" Date
"Shipment Method Code" Code[10]
"Location Code" Code[10]
"Shortcut Dimension 1 Code" Code[20]
"Shortcut Dimension 2 Code" Code[20]
"Customer Posting Group" Code[20]
"Currency Code" Code[10]
"Currency Factor" Decimal
"Customer Price Group" Code[10]
"Prices Including VAT" Boolean
"Invoice Disc. Code" Code[20]
"Customer Disc. Group" Code[20]
"Language Code" Code[10]
"Format Region" Text[80]
"Salesperson Code" Code[20]
Comment Boolean
"No. Printed" Integer
"Applies-to Doc. Type" Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type"
"Applies-to Doc. No." Code[20]
"Bal. Account No." Code[20]
Amount Decimal

Specifies the sum of amounts on all the lines in the document.

"Amount Including VAT" Decimal

Specifies the sum of amounts, including VAT, on all the lines in the document.

"Shipping No." Code[20]
"Posting No." Code[20]
"Last Shipping No." Code[20]
"Last Posting No." Code[20]
"VAT Registration No." Text[20]
"Combine Shipments" Boolean
"Reason Code" Code[10]
"Gen. Bus. Posting Group" Code[20]
"EU 3-Party Trade" Boolean
"Transaction Type" Code[10]
"Transport Method" Code[10]
"VAT Country/Region Code" Code[10]
Name Text[100]
"Name 2" Text[50]

Specifies an additional part of the name of the customer to whom the items on the document will be shipped.

Address Text[100]
"Address 2" Text[50]
City Text[30]
"Contact Name" Text[100]
"Bill-to Post Code" Code[20]
"Bill-to County" Text[30]
"Bill-to Country/Region Code" Code[10]
"Post Code" Code[20]
County Text[30]
"Country/Region Code" Code[10]
"Ship-to Post Code" Code[20]
"Ship-to County" Text[30]
"Ship-to Country/Region Code" Code[10]
"Bal. Account Type" Enum Microsoft.Bank.Payment."Payment Balance Account Type"
"Exit Point" Code[10]
Correction Boolean
"Document Date" Date
"External Document No." Code[35]
"Area" Code[10]
"Transaction Specification" Code[10]
"Payment Method Code" Code[10]
"Shipping Agent Code" Code[10]
"No. Series" Code[20]
"Posting No. Series" Code[20]
"Shipping No. Series" Code[20]
"Tax Area Code" Code[20]
"Tax Liable" Boolean
"VAT Bus. Posting Group" Code[20]
Reserve Enum Microsoft.Inventory.Tracking."Reserve Method"
"Applies-to ID" Code[50]
"VAT Base Discount %" Decimal
Status Enum Microsoft.Service.Document."Service Document Status"
"Invoice Discount Calculation" Option
"Invoice Discount Value" Decimal
"Company Bank Account Code" Code[20]
"Release Status" Enum Microsoft.Service.Document."Service Doc. Release Status"
"VAT Reporting Date" Date
"Incoming Document Entry No." Integer
"Journal Templ. Name" Code[10]
"Work Description" Blob
"Dimension Set ID" Integer
"Direct Debit Mandate ID" Code[35]
"No. of Archived Versions" Integer
"Doc. No. Occurrence" Integer
"Contact No." Code[20]
"Bill-to Contact No." Code[20]
"Responsibility Center" Code[10]
"Shipping Advice" Enum Microsoft.Foundation.Shipping."Sales Header Shipping Advice"
"Completely Shipped" Boolean
"Location Filter" Code[10]
"Shipping Time" DateFormula
"Shipping Agent Service Code" Code[10]
"Date Filter" Date
Description Text[100]
"Service Order Type" Code[10]
"Link Service to Service Item" Boolean
Priority Enum Microsoft.Service.Document."Service Priority"
"Allocated Hours" Decimal
"Phone No." Text[30]
"E-Mail" Text[80]
"Phone No. 2" Text[30]
"Fax No." Text[30]
"No. of Unallocated Items" Integer
"Order Time" Time
"Default Response Time (Hours)" Decimal
"Actual Response Time (Hours)" Decimal
"Service Time (Hours)" Decimal
"Response Date" Date
"Response Time" Time
"Starting Date" Date
"Starting Time" Time
"Finishing Date" Date
"Finishing Time" Time
"Contract Serv. Hours Exist" Boolean
"Reallocation Needed" Boolean
"Notify Customer" Option
"Max. Labor Unit Price" Decimal
"Warning Status" Option
"No. of Allocations" Integer
"Contract No." Code[20]
"Type Filter" Option
"Customer Filter" Code[20]
"Resource Filter" Code[20]
"Contract Filter" Code[20]
"Ship-to Fax No." Text[30]
"Ship-to E-Mail" Text[80]
"Resource Group Filter" Code[20]
"Ship-to Phone" Text[30]
"Ship-to Phone 2" Text[30]
"Service Zone Filter" Code[10]
"Service Zone Code" Code[10]
"Expected Finishing Date" Date
"Price Calculation Method" Enum Microsoft.Pricing.Calculation."Price Calculation Method"
"Allow Line Disc." Boolean
"Assigned User ID" Code[50]
"Quote No." Code[20]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

AssistEdit

Lists all related number series for service header when creating new record.

procedure AssistEdit(OldServHeader: Record "Service Header"): Boolean

Parameters

Name Type Description
OldServHeader Table Microsoft.Service.Document."Service Header"

Service header record that is created.

Returns

Type Description
Boolean

Returns true if number series is assigned successfully, otherwise 'false'.

CreateDim

Generates new dimension set id from provided default dimensions for the current service header.

procedure CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])

Parameters

Name Type Description
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

Provided list of default dimensions.

Remarks

If selected service header is assigned to a contract, it's dimension will be added. Additional dimensions will be propagated to service item lines or service lines if they exist.

UpdateAllLineDim

procedure UpdateAllLineDim(NewParentDimSetID: Integer, OldParentDimSetID: Integer)

Parameters

Name Type Description
NewParentDimSetID Integer
OldParentDimSetID Integer

ValidateShortcutDimCode

Triggers validation of shortcut dimension values.

procedure ValidateShortcutDimCode(FieldNumber: Integer, var ShortcutDimCode: Code[20])

Parameters

Name Type Description
FieldNumber Integer

Indicates the number of a field which invoked the method.

ShortcutDimCode Code[20]

Specified value of the shortcut dimension.

Remarks

Additional changes will be propagated to service item lines or service lines if they exist.

UpdateCurrencyFactor

Updates value of the field 'Currency Factor' for the current service header.

procedure UpdateCurrencyFactor()

Remarks

If no exchange rate for selected currency code exists, the system will offer to a user option to manually add missing exchange rate. Changes will be propagated to all existing service lines related to current service header.

RecreateServLines

Recalculates existing service lines related to current service header based on new values from hader.

procedure RecreateServLines(ChangedFieldName: Text[100])

Parameters

Name Type Description
ChangedFieldName Text[100]

Indicates the name of a field which invoked the method.

Remarks

Changing 'Location Code' value won't be possible if reservation entry, item tracking code or order tracking exist. Additional service lines must not be shipped or invoiced.

ConfirmCurrencyFactorUpdate

procedure ConfirmCurrencyFactorUpdate()

UpdateServLinesByFieldNo

Propagates changes for specific fields provided by 'ChangedFieldNo' to service lines related to current service header.

procedure UpdateServLinesByFieldNo(ChangedFieldNo: Integer, AskQuestion: Boolean)

Parameters

Name Type Description
ChangedFieldNo Integer

Indicates the number of fields which invoked the validation.

AskQuestion Boolean

Indicates if confirmation dialog should appear.

TestMandatoryFields

Verify if all necessary fields are populated for provided service lines based on service management setup.

procedure TestMandatoryFields(var PassedServLine: Record "Service Line")

Parameters

Name Type Description
PassedServLine Table Microsoft.Service.Document."Service Line"

Provided service lines.

Remarks

If 'PassedServLine' is empty, service lines will be filter to the current service header.

UpdateResponseDateTime

Updates values of 'Response Date' and 'Response Time' based on related service item line.

procedure UpdateResponseDateTime()

ServItemLineExists

Checks if service item line exists for current service header record.

procedure ServItemLineExists(): Boolean

Returns

Type Description
Boolean

Returns 'true' if service item line exists, otherwise 'false'.

ServLineExists

Checks if service line exists for current service header record.

procedure ServLineExists(): Boolean

Returns

Type Description
Boolean

Returns 'true' if service line exists, otherwise 'false'.

MessageIfServLinesExist

procedure MessageIfServLinesExist(ChangedFieldName: Text[100])

Parameters

Name Type Description
ChangedFieldName Text[100]

SetHideValidationDialog

Sets value to the global 'HideValidationDialog' which indicates if messages or confirmation dialogs should be shown.

procedure SetHideValidationDialog(NewHideValidationDialog: Boolean)

Parameters

Name Type Description
NewHideValidationDialog Boolean

New boolean value for 'HideValidationDialog'.

Remarks

If set to 'true' no message or confirmation dialog will be shown.

SetValidatingFromLines

Indicates if of values 'Sarting Date', 'Starting Time', 'Finishing Date' and 'Finishing Time' will be taken from related service item line for current service header. Also it controls if field 'Fault Reason Code' should be populated on related service item lines.

procedure SetValidatingFromLines(NewValidatingFromLines: Boolean)

Parameters

Name Type Description
NewValidatingFromLines Boolean

New value for 'ValidatingFromLines'.

Remarks

If 'true' transfer won't be done.

TestNoSeries

Test if a setup for services number series is defined in the service management setup record, also if a corresponding general journal template setup exist.

procedure TestNoSeries()

GetNoSeriesCode

Gets a number series code for the current service header record based on 'Document Type'.

procedure GetNoSeriesCode(): Code[20]

Returns

Type Description
Code[20]

Returns found number series code.

CheckCreditMaxBeforeInsert

procedure CheckCreditMaxBeforeInsert(HideCreditCheckDialogue: Boolean)

Parameters

Name Type Description
HideCreditCheckDialogue Boolean

UpdateServiceOrderChangeLog

Updates service order change log based on changes done to the current service header record.

procedure UpdateServiceOrderChangeLog(var OldServHeader: Record "Service Header")

Parameters

Name Type Description
OldServHeader Table Microsoft.Service.Document."Service Header"

Source service header record.

InitInsert

Initialize values for the new service header record.

procedure InitInsert()

InitRecord

Initialize values for the new service header record.

procedure InitRecord()

SendToPost

procedure SendToPost(CodeunitId: Integer): Boolean

Parameters

Name Type Description
CodeunitId Integer

Returns

Type Description
Boolean

SendToPostWithLines

procedure SendToPostWithLines(CodeunitId: Integer, var TempServLine: Record "Service Line" temporary): Boolean

Parameters

Name Type Description
CodeunitId Integer
TempServLine Table Microsoft.Service.Document."Service Line"

Returns

Type Description
Boolean

SetShipToAddress

Sets shipment information from provided parameters for the current service header record.

procedure SetShipToAddress(ShipToName: Text[100], ShipToName2: Text[50], ShipToAddress: Text[100], ShipToAddress2: Text[50], ShipToCity: Text[30], ShipToPostCode: Code[20], ShipToCounty: Text[30], ShipToCountryRegionCode: Code[10])

Parameters

Name Type Description
ShipToName Text[100]

Provided name information.

ShipToName2 Text[50]

Provided name 2 information.

ShipToAddress Text[100]

Provided address information.

ShipToAddress2 Text[50]

Provided address 2 information.

ShipToCity Text[30]

Provided city information.

ShipToPostCode Code[20]

Provided post code information.

ShipToCounty Text[30]

Provided county information.

ShipToCountryRegionCode Code[10]

Provided country/region code information.

ConfirmDeletion

Runs confirmation dialog to confirm deletion of related service document record.

procedure ConfirmDeletion(): Boolean

Returns

Type Description
Boolean

Returns 'true' if delete is confirmed, otherwise 'false'.

ShowDocDim

Depicts document dimensions for overview. If changes are made, they will be saved to the current record.

procedure ShowDocDim()

LookupAdjmtValueEntries

procedure LookupAdjmtValueEntries(QtyType: Option)

Parameters

Name Type Description
QtyType Option

CalcInvDiscForHeader

Obsolete

This element will become obsolete from version 27.0. Call CalculateIncDiscForHeader on codeunit "Service-Calc. Discount" directly instead

[Obsolete(Call CalculateIncDiscForHeader on codeunit "Service-Calc. Discount" directly instead,27.0)]
procedure CalcInvDiscForHeader()

SetSecurityFilterOnRespCenter

procedure SetSecurityFilterOnRespCenter()

OpenStatistics

Obsolete

This element will become obsolete from version 27.0. The new statistics actions use RunObject and do not run the action trigger. Use a page extension to modify the behaviour.

Runs page service statistic for current service header record.

[Obsolete(The new statistics actions use RunObject and do not run the action trigger. Use a page extension to modify the behaviour.,27.0)]
procedure OpenStatistics()

Remarks

Commit will be triggered.

OpenOrderStatistics

Obsolete

This element will become obsolete from version 27.0. The new statistics actions use RunObject and do not run the action trigger. Use a page extension to modify the behaviour.

[Obsolete(The new statistics actions use RunObject and do not run the action trigger. Use a page extension to modify the behaviour.,27.0)]
procedure OpenOrderStatistics()

SkipStatisticsPreparation

Obsolete

This element will become obsolete from version 27.0. The statistics action will be replaced with the SOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.

[Obsolete(The statistics action will be replaced with the SOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.,27.0)]
procedure SkipStatisticsPreparation(): Boolean

Returns

Type Description
Boolean

ResetSkipStatisticsPreparationFlag

Obsolete

This element will become obsolete from version 27.0. The statistics action will be replaced with the ServiceOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.

[Obsolete(The statistics action will be replaced with the ServiceOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.,27.0)]
procedure ResetSkipStatisticsPreparationFlag()

SetShipToCustomerAddressFieldsFromShipToAddr

Sets 'Ship-to' address information from 'ShipToAddr'.

procedure SetShipToCustomerAddressFieldsFromShipToAddr(ShipToAddr: Record "Ship-to Address")

Parameters

Name Type Description
ShipToAddr Table Microsoft.Sales.Customer."Ship-to Address"

Source ship-to address record.

WhsePickConflict

procedure WhsePickConflict(DocType: Enum "Service Document Type", DocNo: Code[20], ShippingAdvice: Enum "Sales Header Shipping Advice"): Boolean

Parameters

Name Type Description
DocType Enum Microsoft.Service.Document."Service Document Type"
DocNo Code[20]
ShippingAdvice Enum Microsoft.Foundation.Shipping."Sales Header Shipping Advice"

Returns

Type Description
Boolean

InvPickConflictResolutionTxt

procedure InvPickConflictResolutionTxt(): Text[500]

Returns

Type Description
Text[500]

WhseShipmentConflict

procedure WhseShipmentConflict(DocType: Enum "Service Document Type", DocNo: Code[20], ShippingAdvice: Enum "Sales Header Shipping Advice"): Boolean

Parameters

Name Type Description
DocType Enum Microsoft.Service.Document."Service Document Type"
DocNo Code[20]
ShippingAdvice Enum Microsoft.Foundation.Shipping."Sales Header Shipping Advice"

Returns

Type Description
Boolean

WhseShpmtConflictResolutionTxt

procedure WhseShpmtConflictResolutionTxt(): Text[500]

Returns

Type Description
Text[500]

SetCustomerFromFilter

procedure SetCustomerFromFilter()

CopyCustomerFilter

procedure CopyCustomerFilter()

ConfirmCloseUnposted

procedure ConfirmCloseUnposted(): Boolean

Returns

Type Description
Boolean

ValidateSalesPersonOnServiceHeader

procedure ValidateSalesPersonOnServiceHeader(ServiceHeader2: Record "Service Header", IsTransaction: Boolean, IsPostAction: Boolean)

Parameters

Name Type Description
ServiceHeader2 Table Microsoft.Service.Document."Service Header"
IsTransaction Boolean
IsPostAction Boolean

UpdateShipToSalespersonCode

procedure UpdateShipToSalespersonCode()

SetSalespersonCode

procedure SetSalespersonCode(SalesPersonCodeToCheck: Code[20], var SalesPersonCodeToAssign: Code[20])

Parameters

Name Type Description
SalesPersonCodeToCheck Code[20]
SalesPersonCodeToAssign Code[20]

GetHideValidationDialog

procedure GetHideValidationDialog(): Boolean

Returns

Type Description
Boolean

GetFullDocTypeTxt

Gets document type for current service header record.

procedure GetFullDocTypeTxt(): Text

Returns

Type Description
Text

Returns one of full names of document types 'Service Quote', 'Service Order', 'Service Invoice', 'Service Credit Memo'.

GetServiceMgtSetup

Gets the value for the global variable 'ServiceMgtSetup'.

procedure GetServiceMgtSetup()

CheckBusPostingGroups

procedure CheckBusPostingGroups(): Boolean

Returns

Type Description
Boolean

IsCreditDocType

Checks if the current service header field 'Type' value is 'Credit Memo'.

procedure IsCreditDocType(): Boolean

Returns

Type Description
Boolean

Returns 'true' if value of field 'Type' from current service header is 'Credit Memo', otherwise 'false'.

CreateDimFromDefaultDim

procedure CreateDimFromDefaultDim(FieldNo: Integer)

Parameters

Name Type Description
FieldNo Integer

ServiceLinesEditable

procedure ServiceLinesEditable(): Boolean

Returns

Type Description
Boolean

CopyToGenJournalLine

Transfers relevant field values from current service header to the provided general journal line.

procedure CopyToGenJournalLine(var GenJournalLine: Record "Gen. Journal Line")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

Destination general journal line.

CopyToGenJournalLineApplyTo

Transfers apply-to document information from current service header to the provided general journal line.

procedure CopyToGenJournalLineApplyTo(var GenJournalLine: Record "Gen. Journal Line")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

Destination general journal line.

CopyToGenJournalLinePayment

Transfers payment information from current service header to the provided general journal line.

procedure CopyToGenJournalLinePayment(var GenJournalLine: Record "Gen. Journal Line")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

Destination general journal line.

CopyToItemJnlLine

Transfers relevant field values from current service header to the provided item journal line.

procedure CopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

Destination general journal line.

CopyToResJournalLine

procedure CopyToResJournalLine(var ResJournalLine: Record "Res. Journal Line")

Parameters

Name Type Description
ResJournalLine Table Microsoft.Projects.Resources.Journal."Res. Journal Line"

SetWorkDescription

procedure SetWorkDescription(NewWorkDescription: Text)

Parameters

Name Type Description
NewWorkDescription Text

GetWorkDescription

procedure GetWorkDescription(): Text

Returns

Type Description
Text

Events

OnAfterInitDefaultDimensionSources

[IntegrationEvent(False,False)]
local procedure OnAfterInitDefaultDimensionSources(var ServiceHeader: Record "Service Header", var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]], FieldNo: Integer)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]
FieldNo Integer

OnAfterServiceLinesEditable

[IntegrationEvent(False,False)]
local procedure OnAfterServiceLinesEditable(ServiceHeader: Record "Service Header", var IsEditable: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsEditable Boolean

OnBeforeGetFullDocTypeTxt

[IntegrationEvent(False,False)]
local procedure OnBeforeGetFullDocTypeTxt(var ServiceHeader: Record "Service Header", var FullDocTypeTxt: Text, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
FullDocTypeTxt Text
IsHandled Boolean

OnBeforeUpdateCurrencyFactor

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateCurrencyFactor(var ServiceHeader: Record "Service Header", var CurrencyExchangeRate: Record "Currency Exchange Rate", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
CurrencyExchangeRate Table Microsoft.Finance.Currency."Currency Exchange Rate"
IsHandled Boolean

OnBeforeUpdateShipToAddress

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateShipToAddress(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeUpdateStartingDateTime

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateStartingDateTime(var ServiceHeader: Record "Service Header", ValidatingFromLines: Boolean, var ServiceMgtSetup: Record "Service Mgt. Setup")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ValidatingFromLines Boolean
ServiceMgtSetup Table Microsoft.Service.Setup."Service Mgt. Setup"

OnBeforeUpdateFinishingDateTime

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateFinishingDateTime(var ServiceHeader: Record "Service Header", ValidatingFromLines: Boolean, var ServiceMgtSetup: Record "Service Mgt. Setup")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ValidatingFromLines Boolean
ServiceMgtSetup Table Microsoft.Service.Setup."Service Mgt. Setup"

OnBeforePriceMsgIfServLinesExist

[IntegrationEvent(False,False)]
local procedure OnBeforePriceMsgIfServLinesExist(ServiceHeader: Record "Service Header", ChangedFieldName: Text[100], var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ChangedFieldName Text[100]
IsHandled Boolean

OnAfterCopyCustomerFields

[IntegrationEvent(False,False)]
local procedure OnAfterCopyCustomerFields(var ServiceHeader: Record "Service Header", Customer: Record Customer)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
Customer Table Microsoft.Sales.Customer.Customer

OnAfterCopyBillToCustomerFields

[IntegrationEvent(False,False)]
local procedure OnAfterCopyBillToCustomerFields(var ServiceHeader: Record "Service Header", Customer: Record Customer, SkipBillToContact: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
Customer Table Microsoft.Sales.Customer.Customer
SkipBillToContact Boolean

OnAfterCopyShipToCustomerAddressFieldsFromCustomer

[IntegrationEvent(False,False)]
local procedure OnAfterCopyShipToCustomerAddressFieldsFromCustomer(var ServiceHeader: Record "Service Header", SellToCustomer: Record Customer)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
SellToCustomer Table Microsoft.Sales.Customer.Customer

OnAfterCopyShipToCustomerAddressFieldsFromShipToAddr

[IntegrationEvent(False,False)]
local procedure OnAfterCopyShipToCustomerAddressFieldsFromShipToAddr(var ServiceHeader: Record "Service Header", ShipToAddress: Record "Ship-to Address")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ShipToAddress Table Microsoft.Sales.Customer."Ship-to Address"

OnAfterGetNoSeriesCode

[IntegrationEvent(False,False)]
local procedure OnAfterGetNoSeriesCode(var ServiceHeader: Record "Service Header", ServiceMgtSetup: Record "Service Mgt. Setup", var NoSeriesCode: Code[20])

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceMgtSetup Table Microsoft.Service.Setup."Service Mgt. Setup"
NoSeriesCode Code[20]

OnAfterGetPostingNoSeriesCode

[IntegrationEvent(False,False)]
local procedure OnAfterGetPostingNoSeriesCode(var ServiceHeader: Record "Service Header", var PostingNos: Code[20])

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
PostingNos Code[20]

OnAfterInitRecord

[IntegrationEvent(False,False)]
local procedure OnAfterInitRecord(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterSetCompanyBankAccount

[IntegrationEvent(False,False)]
local procedure OnAfterSetCompanyBankAccount(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterSetValidatingFromLines

[IntegrationEvent(False,False)]
local procedure OnAfterSetValidatingFromLines(var ServiceHeader: Record "Service Header", var ValidatingFromLines: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ValidatingFromLines Boolean

OnAfterUpdateBillToCont

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateBillToCont(var ServiceHeader: Record "Service Header", Customer: Record Customer, Contact: Record Contact)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
Customer Table Microsoft.Sales.Customer.Customer
Contact Table Microsoft.CRM.Contact.Contact

OnAfterUpdateShipToAddress

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateShipToAddress(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterUpdateServLinesByFieldNo

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateServLinesByFieldNo(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", ChangedFieldNo: Integer)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
ChangedFieldNo Integer

OnAfterUpdateShipToAddressFromGeneralAddress

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateShipToAddressFromGeneralAddress(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", FieldNo: Integer)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
FieldNo Integer

OnUpdateServLineByChangedFieldName

[IntegrationEvent(False,False)]
local procedure OnUpdateServLineByChangedFieldName(ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", ChangedFieldName: Text[100], ChangedFieldNo: Integer)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
ChangedFieldName Text[100]
ChangedFieldNo Integer

OnUpdateServLinesByFieldNoOnAfterServLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnUpdateServLinesByFieldNoOnAfterServLineSetFilters(var ServiceLine: Record "Service Line", var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", ChangedFieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
ChangedFieldNo Integer

OnAfterCreateDim

[IntegrationEvent(False,False)]
local procedure OnAfterCreateDim(var ServiceHeader: Record "Service Header", DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

OnAfterValidateShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnAfterValidateShortcutDimCode(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", FieldNumber: Integer, var ShortcutDimCode: Code[20])

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
FieldNumber Integer
ShortcutDimCode Code[20]

OnAfterUpdateCont

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateCont(var ServiceHeader: Record "Service Header", Customer: Record Customer, Contact: Record Contact)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
Customer Table Microsoft.Sales.Customer.Customer
Contact Table Microsoft.CRM.Contact.Contact

OnAfterUpdateCust

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateCust(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterTransferExtendedTextForServLineRecreation

[IntegrationEvent(False,False)]
local procedure OnAfterTransferExtendedTextForServLineRecreation(var ServLine: Record "Service Line")

Parameters

Name Type Description
ServLine Table Microsoft.Service.Document."Service Line"

OnBeforeCheckBlockedCustomer

[IntegrationEvent(True,False)]
local procedure OnBeforeCheckBlockedCustomer(var Customer: Record Customer, var IsHandled: Boolean)

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer
IsHandled Boolean

OnBeforeCheckDocumentTypeAlreadyUsed

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckDocumentTypeAlreadyUsed(var ServiceHeader: Record "Service Header", var ServShptHeader: Record "Service Shipment Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServShptHeader Table Microsoft.Service.History."Service Shipment Header"
IsHandled Boolean

OnBeforeConfirmUpdateContractNo

[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmUpdateContractNo(var ServiceHeader: Record "Service Header", var Confirmed: Boolean, var HideValidationDialog: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
Confirmed Boolean
HideValidationDialog Boolean
IsHandled Boolean

OnBeforeCopyShipToCustomerAddressFieldsFromCustomer

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyShipToCustomerAddressFieldsFromCustomer(var ServiceHeader: Record "Service Header", Customer: Record Customer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
Customer Table Microsoft.Sales.Customer.Customer
IsHandled Boolean

OnBeforeCopyShipToCustomerAddressFieldsFromShipToAddr

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyShipToCustomerAddressFieldsFromShipToAddr(var ServiceHeader: Record "Service Header", ShipToAddress: Record "Ship-to Address", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ShipToAddress Table Microsoft.Sales.Customer."Ship-to Address"
IsHandled Boolean

OnBeforeCreateDim

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDim(var ServiceHeader: Record "Service Header", CallingFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
CallingFieldNo Integer
IsHandled Boolean

OnBeforeGetNoSeries

[IntegrationEvent(False,False)]
local procedure OnBeforeGetNoSeries(var ServiceHeader: Record "Service Header", var NoSeriesCode: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
NoSeriesCode Code[20]
IsHandled Boolean

OnBeforeGetPostingNoSeriesCode

[IntegrationEvent(False,False)]
local procedure OnBeforeGetPostingNoSeriesCode(var ServiceHeader: Record "Service Header", ServiceMgtSetup: Record "Service Mgt. Setup", var PostingNos: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceMgtSetup Table Microsoft.Service.Setup."Service Mgt. Setup"
PostingNos Code[20]
IsHandled Boolean

OnBeforeLookupAppliesToDocNo

[IntegrationEvent(False,False)]
local procedure OnBeforeLookupAppliesToDocNo(var ServiceHeader: Record "Service Header", var CustLedgEntry: Record "Cust. Ledger Entry", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
CustLedgEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"
IsHandled Boolean

OnBeforeInsertServLineOnServLineRecreation

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertServLineOnServLineRecreation(var ServiceLine: Record "Service Line", var TempServiceLine: Record "Service Line" temporary)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
TempServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeOnModify

[IntegrationEvent(False,False)]
local procedure OnBeforeOnModify(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeOnInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeOnInsert(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnAfterOnInsert

[IntegrationEvent(False,False)]
local procedure OnAfterOnInsert(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnBeforeOpenOrderStatistics

Obsolete

This element will become obsolete from version 27.0. The new statistics actions use RunObject and do not run the action trigger. Use a page extension to modify the behaviour.

[Obsolete(The new statistics actions use RunObject and do not run the action trigger. Use a page extension to modify the behaviour.,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeOpenOrderStatistics(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeOpenStatistics

Obsolete

This element will become obsolete from version 27.0. The new statistics actions use RunObject and do not run the action trigger. Use a page extension to modify the behaviour.

[Obsolete(The new statistics actions use RunObject and do not run the action trigger. Use a page extension to modify the behaviour.,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeOpenStatistics(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeTestMandatoryFields

[IntegrationEvent(False,False)]
local procedure OnBeforeTestMandatoryFields(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeTestNoSeries

[IntegrationEvent(False,False)]
local procedure OnBeforeTestNoSeries(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeTestNoSeriesManual

[IntegrationEvent(False,False)]
local procedure OnBeforeTestNoSeriesManual(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeUpdateBillToCust

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateBillToCust(var ServiceHeader: Record "Service Header", ContactNo: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ContactNo Code[20]
IsHandled Boolean

OnBeforeValidateAppliesToDocNo

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateAppliesToDocNo(var ServiceHeader: Record "Service Header", var CustLedgEntry: Record "Cust. Ledger Entry", xServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
CustLedgEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"
xServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeValidateServiceZoneCode

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateServiceZoneCode(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeValidateShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShortcutDimCode(var ServiceHeader: Record "Service Header", var xServiceHeader: Record "Service Header", FieldNumber: Integer, var ShortcutDimCode: Code[20])

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
FieldNumber Integer
ShortcutDimCode Code[20]

OnBeforeUpdateAllLineDim

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateAllLineDim(var ServiceHeader: Record "Service Header", NewParentDimSetID: Integer, OldParentDimSetID: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
NewParentDimSetID Integer
OldParentDimSetID Integer
IsHandled Boolean

OnBeforeUpdateCust

[IntegrationEvent(True,False)]
local procedure OnBeforeUpdateCust(ContactNo: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
ContactNo Code[20]
IsHandled Boolean

OnCreateDimOnBeforeUpdateLines

[IntegrationEvent(False,False)]
local procedure OnCreateDimOnBeforeUpdateLines(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", CurrentFieldNo: Integer, OldDimSetID: Integer, DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
CurrentFieldNo Integer
OldDimSetID Integer
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

OnLookupContractNoOnAfterServContractHeaderSetFilters

[IntegrationEvent(False,False)]
local procedure OnLookupContractNoOnAfterServContractHeaderSetFilters(var ServiceHeader: Record "Service Header", var ServiceContractHeader: Record "Service Contract Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceContractHeader Table Microsoft.Service.Contract."Service Contract Header"

OnRecreateServLinesOnBeforeUpdateLines

[IntegrationEvent(False,False)]
local procedure OnRecreateServLinesOnBeforeUpdateLines(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnValidateAppliestoDocNoOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnValidateAppliestoDocNoOnAfterSetFilters(var CustLedgerEntry: Record "Cust. Ledger Entry", var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnValidateCustomerNoOnBeforeDeleteLines

[IntegrationEvent(False,False)]
local procedure OnValidateCustomerNoOnBeforeDeleteLines(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnValidateCustomerNoOnBeforeModify

[IntegrationEvent(False,False)]
local procedure OnValidateCustomerNoOnBeforeModify(var ServiceHeader: Record "Service Header", CallingFieldNo: Integer)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
CallingFieldNo Integer

OnValidateVATBaseDiscountPctOnBeforeUpdateLineAmounts

[IntegrationEvent(False,False)]
local procedure OnValidateVATBaseDiscountPctOnBeforeUpdateLineAmounts(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnValidatePaymentTermsCodeOnBeforeValidateDueDate

[IntegrationEvent(False,False)]
local procedure OnValidatePaymentTermsCodeOnBeforeValidateDueDate(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnValidatePricesIncludingVATOnAfterCalcRecalculatePrice

[IntegrationEvent(False,False)]
local procedure OnValidatePricesIncludingVATOnAfterCalcRecalculatePrice(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", var RecalculatePrice: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
RecalculatePrice Boolean

OnValidateShipToCodeOnBeforeDeleteLines

[IntegrationEvent(False,False)]
local procedure OnValidateShipToCodeOnBeforeDeleteLines(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnValidateShipToCodeOnAfterCalcShouldUpdateShipToAddressFields

[IntegrationEvent(False,False)]
local procedure OnValidateShipToCodeOnAfterCalcShouldUpdateShipToAddressFields(var ServiceHeader: Record "Service Header", var ShouldUpdateShipToAddressFields: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ShouldUpdateShipToAddressFields Boolean

OnValidateServiceDocumentStatusOnAfterServItemLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnValidateServiceDocumentStatusOnAfterServItemLineSetFilters(var ServiceHeader: Record "Service Header", var ServiceItemLine: Record "Service Item Line")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceItemLine Table Microsoft.Service.Document."Service Item Line"

OnValidateServPriceGrOnServItemOnAfterServItemLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnValidateServPriceGrOnServItemOnAfterServItemLineSetFilters(var ServiceHeader: Record "Service Header", var ServiceItemLine: Record "Service Item Line")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceItemLine Table Microsoft.Service.Document."Service Item Line"

OnBeforeConfirmRecalculatePrice

[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmRecalculatePrice(ServiceHeader: Record "Service Header", var HideValidationDialog: Boolean, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
HideValidationDialog Boolean
Result Boolean
IsHandled Boolean

OnBeforeSetSalespersonCode

[IntegrationEvent(False,False)]
local procedure OnBeforeSetSalespersonCode(var ServiceHeader: Record "Service Header", SalesPersonCodeToCheck: Code[20], var SalesPersonCodeToAssign: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
SalesPersonCodeToCheck Code[20]
SalesPersonCodeToAssign Code[20]
IsHandled Boolean

OnBeforeUpdateShipToSalespersonCode

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateShipToSalespersonCode(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnUpdateShiptoSalespersonCodeNotAssigned

[IntegrationEvent(False,False)]
local procedure OnUpdateShiptoSalespersonCodeNotAssigned(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeSetResponsibilityCenter

[IntegrationEvent(False,False)]
local procedure OnBeforeSetResponsibilityCenter(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeShowPostedDocsToPrintCreatedMsg

[IntegrationEvent(True,False)]
local procedure OnBeforeShowPostedDocsToPrintCreatedMsg(var ShowPostedDocsToPrint: Boolean)

Parameters

Name Type Description
ShowPostedDocsToPrint Boolean

OnBeforeRecreateServLines

[IntegrationEvent(False,False)]
local procedure OnBeforeRecreateServLines(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", ChangedFieldName: Text[100], var IsHandled: Boolean, CurrentFieldNo: Integer)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
ChangedFieldName Text[100]
IsHandled Boolean
CurrentFieldNo Integer

OnBeforeConfirmRecreateServLines

[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmRecreateServLines(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", ChangedFieldName: Text[100], var HideValidationDialog: Boolean, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
ChangedFieldName Text[100]
HideValidationDialog Boolean
Result Boolean
IsHandled Boolean

OnBeforeSetDefaultNoSeries

[IntegrationEvent(False,False)]
local procedure OnBeforeSetDefaultNoSeries(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeSetSecurityFilterOnRespCenter

[IntegrationEvent(False,False)]
local procedure OnBeforeSetSecurityFilterOnRespCenter(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnInsertOnBeforeInitRecord

[IntegrationEvent(False,False)]
local procedure OnInsertOnBeforeInitRecord(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"

OnInitInsertOnBeforeInitSeries

[IntegrationEvent(False,False)]
local procedure OnInitInsertOnBeforeInitSeries(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnInitRecordOnAfterValidateLocationCode

[IntegrationEvent(False,False)]
local procedure OnInitRecordOnAfterValidateLocationCode(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"

OnUpdateAllLineDimOnBeforeGetServLineNewDimSetID

[IntegrationEvent(False,False)]
local procedure OnUpdateAllLineDimOnBeforeGetServLineNewDimSetID(var ServLine: Record "Service Line", NewParentDimSetID: Integer, OldParentDimSetID: Integer)

Parameters

Name Type Description
ServLine Table Microsoft.Service.Document."Service Line"
NewParentDimSetID Integer
OldParentDimSetID Integer

OnUpdateAllLineDimOnBeforeGetServItemLineNewDimSetID

[IntegrationEvent(False,False)]
local procedure OnUpdateAllLineDimOnBeforeGetServItemLineNewDimSetID(var ServItemLine: Record "Service Item Line", NewParentDimSetID: Integer, OldParentDimSetID: Integer)

Parameters

Name Type Description
ServItemLine Table Microsoft.Service.Document."Service Item Line"
NewParentDimSetID Integer
OldParentDimSetID Integer

OnUpdateBillToCustOnAfterUpdateBillToContact

[IntegrationEvent(False,False)]
local procedure OnUpdateBillToCustOnAfterUpdateBillToContact(var ServiceHeader: Record "Service Header", Customer: Record Customer, Contact: Record Contact)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
Customer Table Microsoft.Sales.Customer.Customer
Contact Table Microsoft.CRM.Contact.Contact

OnRecreateServLinesOnAfterServLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnRecreateServLinesOnAfterServLineSetFilters(var ServLine: Record "Service Line")

Parameters

Name Type Description
ServLine Table Microsoft.Service.Document."Service Line"

OnRecreateServLinesOnBeforeServLineDeleteAll

[IntegrationEvent(False,False)]
local procedure OnRecreateServLinesOnBeforeServLineDeleteAll(var ServiceHeader: Record "Service Header", var ServLine: Record "Service Line", CurrFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServLine Table Microsoft.Service.Document."Service Line"
CurrFieldNo Integer
IsHandled Boolean

OnRecreateServLinesOnAfterTempServLineDeleteAll

[IntegrationEvent(False,False)]
local procedure OnRecreateServLinesOnAfterTempServLineDeleteAll(ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnTestMandatoryFieldsOnBeforePassedServLineFind

[IntegrationEvent(False,False)]
local procedure OnTestMandatoryFieldsOnBeforePassedServLineFind(ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", var PassedServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
PassedServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnAfterGetServiceMgtSetup

[IntegrationEvent(False,False)]
local procedure OnAfterGetServiceMgtSetup(var ServSetup: Record "Service Mgt. Setup", ServiceHeader: Record "Service Header", CurrFieldNo: Integer)

Parameters

Name Type Description
ServSetup Table Microsoft.Service.Setup."Service Mgt. Setup"
ServiceHeader Table Microsoft.Service.Document."Service Header"
CurrFieldNo Integer

OnShowDocDimOnBeforeUpdateAllLineDim

[IntegrationEvent(False,False)]
local procedure OnShowDocDimOnBeforeUpdateAllLineDim(var Rec: Record "Service Header", OldDimSetID: Integer, CurrFieldNo: Integer)

Parameters

Name Type Description
Rec Table Microsoft.Service.Document."Service Header"
OldDimSetID Integer
CurrFieldNo Integer

OnValidateCustomerNoAfterInit

[IntegrationEvent(False,False)]
local procedure OnValidateCustomerNoAfterInit(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"

OnBeforeValidateCity

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateCity(var ServiceHeader: Record "Service Header", var PostCodeRec: Record "Post Code", CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
PostCodeRec Table Microsoft.Foundation.Address."Post Code"
CurrentFieldNo Integer
IsHandled Boolean

OnBeforeValidatePostCode

[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePostCode(var ServiceHeader: Record "Service Header", var PostCodeRec: Record "Post Code", CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
PostCodeRec Table Microsoft.Foundation.Address."Post Code"
CurrentFieldNo Integer
IsHandled Boolean

OnBeforeValidateBillToCity

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateBillToCity(var ServiceHeader: Record "Service Header", var PostCodeRec: Record "Post Code", CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
PostCodeRec Table Microsoft.Foundation.Address."Post Code"
CurrentFieldNo Integer
IsHandled Boolean

OnBeforeValidateBillToPostCode

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateBillToPostCode(var ServiceHeader: Record "Service Header", var PostCodeRec: Record "Post Code", CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
PostCodeRec Table Microsoft.Foundation.Address."Post Code"
CurrentFieldNo Integer
IsHandled Boolean

OnBeforeValidateShipToCity

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShipToCity(var ServiceHeader: Record "Service Header", var PostCodeRec: Record "Post Code", CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
PostCodeRec Table Microsoft.Foundation.Address."Post Code"
CurrentFieldNo Integer
IsHandled Boolean

OnBeforeValidateShipToPostCode

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShipToPostCode(var ServiceHeader: Record "Service Header", var PostCodeRec: Record "Post Code", CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
PostCodeRec Table Microsoft.Foundation.Address."Post Code"
CurrentFieldNo Integer
IsHandled Boolean

OnValidateShipToCodeOnBeforeConfirmDeleteLines

[IntegrationEvent(False,False)]
local procedure OnValidateShipToCodeOnBeforeConfirmDeleteLines(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeCheckCustomerPostingGroupChange

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckCustomerPostingGroupChange(var ServiceHeader: Record "Service Header", var xServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnValidateBillToCustomerNoOnBeforeConfirmChange

[IntegrationEvent(True,False)]
local procedure OnValidateBillToCustomerNoOnBeforeConfirmChange(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnValidateCustomerNoOnBeforeShippedServLinesExist

[IntegrationEvent(True,False)]
local procedure OnValidateCustomerNoOnBeforeShippedServLinesExist(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnValidateFinishingTimeOnBeforeCheckServItemLines

[IntegrationEvent(False,False)]
local procedure OnValidateFinishingTimeOnBeforeCheckServItemLines(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", var ServiceItemLine: Record "Service Item Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceItemLine Table Microsoft.Service.Document."Service Item Line"
IsHandled Boolean

OnValidateStatusFinishedOnAferUpdateFinishingDateTime

[IntegrationEvent(False,False)]
local procedure OnValidateStatusFinishedOnAferUpdateFinishingDateTime(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"

OnValidateServiceOrderTypeOnBeforeCreateDim

[IntegrationEvent(False,False)]
local procedure OnValidateServiceOrderTypeOnBeforeCreateDim(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnUpdateAllLineDimOnBeforeGetResponse

[IntegrationEvent(False,False)]
local procedure OnUpdateAllLineDimOnBeforeGetResponse(var ServiceHeader: Record "Service Header", NewParentDimSetID: Integer, OldParentDimSetID: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
NewParentDimSetID Integer
OldParentDimSetID Integer
IsHandled Boolean

OnValidateAssignedUserIdOnBeforeCheckRespCenter

[IntegrationEvent(False,False)]
local procedure OnValidateAssignedUserIdOnBeforeCheckRespCenter(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnValidateCustomerNoOnBeforeValidateBillToCustomerNo

[IntegrationEvent(False,False)]
local procedure OnValidateCustomerNoOnBeforeValidateBillToCustomerNo(var ServiceHeader: Record "Service Header", Customer: Record Customer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
Customer Table Microsoft.Sales.Customer.Customer
IsHandled Boolean

OnValidateCustomerNoOnBeforeValidateServiceZoneCode

[IntegrationEvent(False,False)]
local procedure OnValidateCustomerNoOnBeforeValidateServiceZoneCode(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnValidateShiptoCodeBeforeConfirmDialog

[IntegrationEvent(False,False)]
local procedure OnValidateShiptoCodeBeforeConfirmDialog(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnValidateShipToCodeOnBeforeValidateServiceZoneCode

[IntegrationEvent(False,False)]
local procedure OnValidateShipToCodeOnBeforeValidateServiceZoneCode(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeValidateContractNo

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateContractNo(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnDeleteOnBeforeServItemLineDelete

[IntegrationEvent(False,False)]
local procedure OnDeleteOnBeforeServItemLineDelete(var ServiceItemLine: Record "Service Item Line", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceItemLine Table Microsoft.Service.Document."Service Item Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnDeleteHeaderOnBeforeDeleteRelatedRecords

[IntegrationEvent(False,False)]
local procedure OnDeleteHeaderOnBeforeDeleteRelatedRecords(var ServiceHeader: Record "Service Header", var ServShptHeader: Record "Service Shipment Header", var ServInvHeader: Record "Service Invoice Header", var ServCrMemoHeader: Record "Service Cr.Memo Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServShptHeader Table Microsoft.Service.History."Service Shipment Header"
ServInvHeader Table Microsoft.Service.History."Service Invoice Header"
ServCrMemoHeader Table Microsoft.Service.History."Service Cr.Memo Header"
IsHandled Boolean

OnBeforeValidateCustomerNo

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateCustomerNo(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", CallingFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
CallingFieldNo Integer
IsHandled Boolean

OnValidateCustomerNoOnBeforeVerifyShipToCode

[IntegrationEvent(False,False)]
local procedure OnValidateCustomerNoOnBeforeVerifyShipToCode(var ServiceHeader: Record "Service Header", var SkipBillToContact: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
SkipBillToContact Boolean
IsHandled Boolean

OnValidateBillToCustomerNoOnBeforeCopyBillToCustomerFields

[IntegrationEvent(False,False)]
local procedure OnValidateBillToCustomerNoOnBeforeCopyBillToCustomerFields(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnValidateBillToCustomerNoOnBeforeRecreateServLines

[IntegrationEvent(False,False)]
local procedure OnValidateBillToCustomerNoOnBeforeRecreateServLines(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnValidateShortcutDimCodeOnBeforeUpdateUpdateAllLineDim

[IntegrationEvent(False,False)]
local procedure OnValidateShortcutDimCodeOnBeforeUpdateUpdateAllLineDim(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", FieldNumber: Integer)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
FieldNumber Integer

OnBeforeLookupContactNo

[IntegrationEvent(False,False)]
local procedure OnBeforeLookupContactNo(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnBeforeValidateResponsibilityCenter

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateResponsibilityCenter(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeUpdateServLinesByFieldNoOnBeforeAskQst

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateServLinesByFieldNoOnBeforeAskQst(var ServiceHeader: Record "Service Header", AskQuestion: Boolean, ChangedFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
AskQuestion Boolean
ChangedFieldNo Integer
IsHandled Boolean

OnBeforeCheckCreditMaxBeforeInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckCreditMaxBeforeInsert(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnAfterUpdateServiceOrderChangeLog

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateServiceOrderChangeLog(var ServiceHeader: Record "Service Header", var OldServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
OldServiceHeader Table Microsoft.Service.Document."Service Header"

OnBeforeCopyCustomerFields

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyCustomerFields(var ServiceHeader: Record "Service Header", Customer: Record Customer, var SkipContact: Boolean, var SkipBillToContact: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
Customer Table Microsoft.Sales.Customer.Customer
SkipContact Boolean
SkipBillToContact Boolean
IsHandled Boolean

OnBeforeCopyBillToCustFields

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyBillToCustFields(var ServiceHeader: Record "Service Header", Customer: Record Customer, var SkipBillToContact: Boolean, CurrFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
Customer Table Microsoft.Sales.Customer.Customer
SkipBillToContact Boolean
CurrFieldNo Integer
IsHandled Boolean

OnBeforeSetHideValidationDialog

[IntegrationEvent(False,False)]
local procedure OnBeforeSetHideValidationDialog(var ServiceHeader: Record "Service Header", var HideValidationDialog: Boolean, NewHideValidationDialog: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
HideValidationDialog Boolean
NewHideValidationDialog Boolean
IsHandled Boolean

OnBeforeValidateExternalDocumentNo

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateExternalDocumentNo(var ServiceHeader: Record "Service Header", var xServiceHeader: Record "Service Header", CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
CurrentFieldNo Integer
IsHandled Boolean

OnCreateServiceLinesOnBeforeCopyReservEntryFromTemp

[IntegrationEvent(False,False)]
local procedure OnCreateServiceLinesOnBeforeCopyReservEntryFromTemp(var ServiceLine: Record "Service Line", var TempServiceLine: Record "Service Line" temporary, var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
TempServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"

OnBeforeSetDefaultSalesperson

[IntegrationEvent(False,False)]
local procedure OnBeforeSetDefaultSalesperson(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnAfterSetCustomerFromFilter

[IntegrationEvent(False,False)]
local procedure OnAfterSetCustomerFromFilter(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterCopyToGenJnlLine

[IntegrationEvent(False,False)]
local procedure OnAfterCopyToGenJnlLine(var GenJournalLine: Record "Gen. Journal Line", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterCopyToGenJnlLineApplyTo

[IntegrationEvent(False,False)]
local procedure OnAfterCopyToGenJnlLineApplyTo(var GenJournalLine: Record "Gen. Journal Line", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterCopyToGenJnlLinePayment

[IntegrationEvent(False,False)]
local procedure OnAfterCopyToGenJnlLinePayment(var GenJournalLine: Record "Gen. Journal Line", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterCopyToItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterCopyToResJournalLine

[IntegrationEvent(False,False)]
local procedure OnAfterCopyToResJournalLine(var ResJournalLine: Record "Res. Journal Line", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ResJournalLine Table Microsoft.Projects.Resources.Journal."Res. Journal Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnOpenStatisticsOnAfterSetStatPageID

Obsolete

This element will become obsolete from version 27.0. The new statistics actions use RunObject and do not run the action trigger. Use a page extension to modify the behaviour.

[Obsolete(The new statistics actions use RunObject and do not run the action trigger. Use a page extension to modify the behaviour.,27.0)]
[IntegrationEvent(False,False)]
local procedure OnOpenStatisticsOnAfterSetStatPageID(var ServiceHeader: Record "Service Header", var StatPageID: Integer)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
StatPageID Integer

OnOpenOrderStatisticsOnAfterSetStatPageID

Obsolete

This element will become obsolete from version 27.0. The new statistics actions use RunObject and do not run the action trigger. Use a page extension to modify the behaviour.

[Obsolete(The new statistics actions use RunObject and do not run the action trigger. Use a page extension to modify the behaviour.,27.0)]
[IntegrationEvent(False,False)]
local procedure OnOpenOrderStatisticsOnAfterSetStatPageID(var ServiceHeader: Record "Service Header", var StatPageID: Integer)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
StatPageID Integer

OnDeleteOnBeforeArchiveServiceDocument

[IntegrationEvent(False,False)]
local procedure OnDeleteOnBeforeArchiveServiceDocument(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"

OnBeforeOnDelete

[IntegrationEvent(False,False)]
local procedure OnBeforeOnDelete(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnBeforeCheckBusPostingGroups

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckBusPostingGroups(var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Result Boolean
IsHandled Boolean

OnAfterCopyAppliestoFieldsFromCustLedgerEntry

[IntegrationEvent(False,False)]
local procedure OnAfterCopyAppliestoFieldsFromCustLedgerEntry(var ServiceHeader: Record "Service Header", var CustLedgerEntry: Record "Cust. Ledger Entry")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

OnBeforeValidatePaymentTerms

[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePaymentTerms(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnAfterInitPostingDate

[IntegrationEvent(False,False)]
local procedure OnAfterInitPostingDate(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterValidateBillToCustomerNo

[IntegrationEvent(False,False)]
local procedure OnAfterValidateBillToCustomerNo(var ServiceHeader: Record "Service Header", var xServiceHeader: Record "Service Header", var Customer: Record Customer)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
Customer Table Microsoft.Sales.Customer.Customer

OnUpdateCurrencyFactorOnAfterSetCurrencyDate

[IntegrationEvent(False,False)]
local procedure OnUpdateCurrencyFactorOnAfterSetCurrencyDate(var ServiceHeader: Record "Service Header", var GeneralLedgerSetup: Record "General Ledger Setup", var CurrencyDate: Date)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
GeneralLedgerSetup Table Microsoft.Finance.GeneralLedger.Setup."General Ledger Setup"
CurrencyDate Date

OnValidatePostingDateOnAfterCheckPostingDate

[IntegrationEvent(False,False)]
local procedure OnValidatePostingDateOnAfterCheckPostingDate(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnValidatePostingDateOnAfterUpdatePostingDateOnLines

[IntegrationEvent(False,False)]
local procedure OnValidatePostingDateOnAfterUpdatePostingDateOnLines(var ServiceHeader: Record "Service Header", HideValidationDialog: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
HideValidationDialog Boolean

OnValidatePostingDateOnAfterValidateVATReportingDate

[IntegrationEvent(False,False)]
local procedure OnValidatePostingDateOnAfterValidateVATReportingDate(var ServiceHeader: Record "Service Header", var xServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnValidateDocumentDateOnAfterValidateVATReportingDate

[IntegrationEvent(False,False)]
local procedure OnValidateDocumentDateOnAfterValidateVATReportingDate(var ServiceHeader: Record "Service Header", var xServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"

OnDeleteOnBeforeShowPostedDocsToPrint

[IntegrationEvent(False,False)]
local procedure OnDeleteOnBeforeShowPostedDocsToPrint(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnBeforeSendToPostWithLines

[IntegrationEvent(False,False)]
local procedure OnBeforeSendToPostWithLines(var ServiceHeader: Record "Service Header", var TempServiceLine: Record "Service Line" temporary, PostingCodeunitID: Integer, var IsHandled: Boolean, var IsSuccess: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
TempServiceLine Table Microsoft.Service.Document."Service Line"
PostingCodeunitID Integer
IsHandled Boolean
IsSuccess Boolean

OnBeforeValidateStartingDate

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateStartingDate(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", CallingFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
CallingFieldNo Integer
IsHandled Boolean

OnBeforeValidateStartingTime

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateStartingTime(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", CallingFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
CallingFieldNo Integer
IsHandled Boolean

OnBeforeValidateFinishingDate

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateFinishingDate(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", CallingFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
CallingFieldNo Integer
IsHandled Boolean

OnBeforeValidateFinishingTime

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateFinishingTime(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", CallingFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
CallingFieldNo Integer
IsHandled Boolean

OnBeforeValidateOrderDate

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateOrderDate(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", CallingFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
CallingFieldNo Integer
IsHandled Boolean

OnBeforeValidateStatus

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateStatus(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", CallingFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
CallingFieldNo Integer
IsHandled Boolean

OnBeforeUpdateResponseDateTime

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateResponseDateTime(var ServiceHeader: Record "Service Header", CallingFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
CallingFieldNo Integer
IsHandled Boolean

OnValidateBillToCustomerNoOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnValidateBillToCustomerNoOnAfterSetFilters(var ServiceLine: Record "Service Line", var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterValidateAppliesToDocNo

[IntegrationEvent(False,False)]
local procedure OnAfterValidateAppliesToDocNo(var ServiceHeader: Record "Service Header", xServiceHeader: Record "Service Header", CustLedgEntry: Record "Cust. Ledger Entry")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
xServiceHeader Table Microsoft.Service.Document."Service Header"
CustLedgEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

OnUpdateAllLineDimOnBeforeServiceLineModify

[IntegrationEvent(False,False)]
local procedure OnUpdateAllLineDimOnBeforeServiceLineModify(var ServiceLine: Record "Service Line", var xServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"

OnUpdateAllLineDimOnAfterServiceLineModify

[IntegrationEvent(False,False)]
local procedure OnUpdateAllLineDimOnAfterServiceLineModify(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterLookupAppliesToDocNo

[IntegrationEvent(False,False)]
local procedure OnAfterLookupAppliesToDocNo(var ServiceHeader: Record "Service Header", var CustLedgEntry: Record "Cust. Ledger Entry")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
CustLedgEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

See also