Skip to content

KVSKBANullDispatchProvider#

Implements [#437dbf0e84ff417a965ded2bb9650972#Shipment Method ](https://github.com/search?q=Table+%23437dbf0e84ff417a965ded2bb9650972%23Shipment+Method+repo%3AStefanMaron%2FMSDyn365BC.Code.History&type=Code) .

Procedures#

Id() : Guid#

Summary: Returns the unique identifier (GUID) of the dispatch provider.

procedure Id(): Guid

Returns: The GUID of the Null Dispatch Provider.

Remarks: This GUID uniquely identifies the Null Dispatch Provider in the system. The returned GUID is constant: 8eb72620-0840-4c03-84f8-25a0661cb808.

Name() : Text#

Summary: Returns the name of the dispatch provider.

procedure Name(): Text

Returns: The name "Zero" identifying this provider.

Remarks: The Null Dispatch Provider is named "Zero" to indicate it performs no actual operations. Use this name for display purposes or provider selection.

Version() : Text#

Summary: Returns the version number of the dispatch provider.

procedure Version(): Text

Returns: The version string in format "1.0.0.0".

Remarks: The version follows semantic versioning format (major.minor.patch.build). This information can be used for compatibility checks or logging.

Description() : Text#

Summary: Returns a description of the dispatch provider's purpose.

procedure Description(): Text

Returns: A text describing the provider as an empty test implementation.

Remarks: This provider is intended for testing scenarios where a dispatch provider is required but no actual dispatch operations should be performed. Use this when you need a null object pattern implementation for the IDispatchProvider interface.

Send(Variant, Text) : Boolean#

Summary: Simulates sending a dispatch without performing any actual operation.

procedure Send(rec: Variant; var response: Text): Boolean

Parameters:

  • rec: The record variant to be dispatched (ignored).
  • response: Output parameter for the response text (will be empty).

Returns: Always returns true to indicate success.

Remarks: This is a null implementation that clears the response and returns success. No actual dispatch operation is performed - the record is ignored. Use this for testing scenarios where dispatch success should be simulated without side effects.

Status(Variant, Text) : Boolean#

Summary: Simulates checking dispatch status without performing any actual operation.

procedure Status(rec: Variant; var response: Text): Boolean

Parameters:

  • rec: The record variant to check status for (ignored).
  • response: Output parameter for the status response text (will be empty).

Returns: Always returns true to indicate success.

Remarks: This is a null implementation that clears the response and returns success. No actual status check is performed - the record is ignored. Use this for testing scenarios where status checks should be simulated without side effects.