Show / Hide Table of Contents

    GetChangedRecords Procedure

    Codeunit Ext. System Public API

    Gets any changed records for the given External System.

    The maximum number of records returned is configured on the External System.

    Overloads

    Name Description
    GetChangedRecords(Code[20]; Code[20]; Guid; Record "QWESR EXT Sync Record" temporary): Integer Gets any changed records for the given External System.
    GetChangedRecords(Code[20]; Guid; Record "QWESR EXT Sync Record" temporary): Integer Gets any changed records for the given External System.

    GetChangedRecords(Code[20]; Code[20]; Guid; Record "QWESR EXT Sync Record" temporary) Procedure

    Gets any changed records for the given External System.

    The maximum number of records returned is configured on the External System.

    Signature

    GetChangedRecords(SystemCode: Code[20]; ExternalSubsystemCode: Code[20]; var FetchId: Guid; var TempSyncRecord: Record "QWESR EXT Sync Record" temporary) : Integer
    

    Parameters

    SystemCode Code[20]

    The code of the External System. This External System must be configured in BC.

    ExternalSubsystemCode Code[20]

    The code of the Subsystem of the current External System. This must be configured in BC.

    var FetchId Guid

    A unique Id of the returned batch of changed record.

    If there are any changed records, a batch of records are returned in every call to this function. Every batch gets a unique FetchId that is used in the next call to this function. In this way the system knows which record changes has been handled or not.

    var TempSyncRecord Record "QWESR EXT Sync Record" temporary

    Returns a set of the changed records, if there are any records to return.

    Returns

    Integer

    The number of returned records in TempSyncRecord.

    Remarks

    This function should be called until there are no more records returned.

    In the first call an empty FetchId should be supplied, and then the last returned FetchId should be supplied for any subsequent call. The system uses this FetchId to move the change log records associated with this FetchId to the History tables according to the settings on the External System.

    GetChangedRecords(Code[20]; Guid; Record "QWESR EXT Sync Record" temporary) Procedure

    Gets any changed records for the given External System.

    The maximum number of records returned is configured on the External System.

    Signature

    GetChangedRecords(SystemCode: Code[20]; var FetchId: Guid; var TempSyncRecord: Record "QWESR EXT Sync Record" temporary) : Integer
    

    Parameters

    SystemCode Code[20]

    The code of the External System. This External System must be configured in BC.

    var FetchId Guid

    A unique Id of the returned batch of changed record.

    If there are any changed records, a batch of records are returned in every call to this function. Every batch gets a unique FetchId that is used in the next call to this function. In this way the system knows which record changes has been handled or not.

    var TempSyncRecord Record "QWESR EXT Sync Record" temporary

    Returns a set of the changed records, if there are any records to return.

    Returns

    Integer

    The number of returned records in TempSyncRecord.

    Remarks

    This function should be called until there are no more records returned.

    In the first call an empty FetchId should be supplied, and then the last returned FetchId should be supplied for any subsequent call. The system uses this FetchId to move the change log records associated with this FetchId to the History tables according to the settings on the External System.

    This documentation is generated from Spider v25.1.232043.0

    Back to top Copyright © 2020 SmartApps
    Generated by DocFX