OnTime Extension SDK Documentation
OnTime.Extensions.SDK Namespace / DataAccess Class / SaveOrderStatusChange Method / SaveOrderStatusChange(Guid,String,OrderStatusBase,DateTime) Method
The unique identifier of the Order as a Guid.
The new label assigned to the status update.
The new status of the Order as a OrderStatusBase value.
The exact date and time that the status change occurred.
Dates should be specified as Local or UTC by use of the System.DateTime.Kind property. Dates with the System.DateTime.Kind property not set (Unspecified) will be interpreted as UTC.



In This Topic
    SaveOrderStatusChange(Guid,String,OrderStatusBase,DateTime) Method
    In This Topic
    Updates the current status of an existing Order.
    Syntax
    'Declaration
     
    
    Public Overloads Function SaveOrderStatusChange( _
       ByVal orderID As Guid, _
       ByVal description As String, _
       ByVal level As StatusBase.OrderStatusBase, _
       ByVal timestamp As Date _
    ) As Object
    'Usage
     
    
    Dim instance As DataAccess
    Dim orderID As Guid
    Dim description As String
    Dim level As StatusBase.OrderStatusBase
    Dim timestamp As Date
    Dim value As Object
     
    value = instance.SaveOrderStatusChange(orderID, description, level, timestamp)

    Parameters

    orderID
    The unique identifier of the Order as a Guid.
    description
    The new label assigned to the status update.
    level
    The new status of the Order as a OrderStatusBase value.
    timestamp
    The exact date and time that the status change occurred.
    Dates should be specified as Local or UTC by use of the System.DateTime.Kind property. Dates with the System.DateTime.Kind property not set (Unspecified) will be interpreted as UTC.

    Return Value

    Returns true if the status of the Order was successfully updated. Otherwise, returns false.
    Requirements

    Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11, Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019, Windows Server 2022

    See Also