Codeunit 18008309 EOS010 CMS Integration

Codeunit 18008309 EOS010 CMS Integration

Codeunit for managing Salesperson integration with external entities. Manages bidirectional synchronization between the EOS010 Salesperson Integration table and the Customer, Ship-to Address, and EOS Sales Network tables. This codeunit is SingleInstance to maintain the DisableNextLogging flag state across different calls during the same session.

Methods

HandleSalesPersonIntegrationSetupChange

procedure HandleSalesPersonIntegrationSetupChange(EnableIntegration: Boolean; HideConfirmations: Boolean)

Handles Salesperson integration setup changes. When integration is enabled, updates the integration table by synchronizing data from Customer, Ship-to Address, and Sales Network.

Parameters / Return Value

  • EnableIntegration Boolean

    True to enable integration, False to disable it.

  • HideConfirmations Boolean

    True to skip user confirmations, False to show confirmation dialogs.


SetDisableNextLogging

procedure SetDisableNextLogging()

Disables logging for the next operation on the Salesperson Integration table. The flag is automatically reset after the first intercepted operation. Useful to avoid infinite loops during data synchronization.


EnableLogging

procedure EnableLogging()

Re-enables logging of operations on the Salesperson Integration table. Resets the DisableNextLogging flag to False.


IsValidInput

procedure IsValidInput(var SalespersonIntegration: Record "EOS010 Salesperson Integration"): Boolean

Verifies if the Salesperson Integration record is valid for processing. Checks that the record is not temporary, belongs to the current company, is associated with a supported table, and has key fields populated.

Parameters / Return Value

  • SalespersonIntegration Record "EOS010 Salesperson Integration"

    The integration record to validate.

  • Returns Boolean

    True if the record is valid, False otherwise.



EOS Labs -