Create a new synchronization entry for selected operation and optionally associate it with a specific record in Business Central. The operation will be scheduled to run in the future.
Enum "Provider ID RWU"
- Specifies the enum ID of RESTwithUS provider.Enum "Operation ID RWU"
- Specifies the enum ID of RESTwithUS operation.Text
- Specifies the custom description of sync. entry.Variant
- Specifies the related record in Business Central. Can be either record variable, GUID with System ID or Record ID.Text
- Specifies the description of RESTwithUS API provider.Text
- Specifies the description of RESTwithUS operation.Text
- Specifies the custom description of sync. entry.Variant
- Specifies the related record in Business Central. Can be either record variable, GUID with System ID or Record ID.Integer
Entry no. of newly created synchronization entry. If no entry was created (i.e. operation does not exist or there is already a scheduled entry for the same record), returns 0.
var
Customer: Record Customer;
SyncEntryNo: Integer;
//Create sync. entry to synchronize specific record with some operation
Customer.Get('10000');
APIScriptRWU.CREATE_SYNC_ENTRY("Provider ID RWU"::TestProvider, "Operation ID RWU"::TestProvider_CreateCustomer, Customer, 'Customer was created');
//Create sync. entry to run some operation not related to any record (e.g. periodical download of new orders)
//Get the sync. entry no. to further work with the entry record
SyncEntryNo := APIScriptRWU.CREATE_SYNC_ENTRY("Provider ID RWU"::TestProvider, "Operation ID RWU"::TestProvider_GetOrders, 'Periodical download of new orders');