Get the value of the last auto-increment from an entity. This value is usually used for storing the last id of a record synchronized from or to an external system.
Enum "Provider ID RWU"
- Specifies the enum ID of RESTwithUS provider.Enum "Entity ID RWU"
- Specifies the enum ID of RESTwithUS entity.Text
- Specifies the description of RESTwithUS provider.Text
- Specifies the description of RESTwithUS entity.Integer
Value of last auto-increment from the selected entity.
//Get the id of last new customer record, that was synchronized from an external system
APIScriptRWU.LAST_AUTO_INCREMENT(ProviderID::TestProvider,EntityID::TestProvider_Customer);
//Get the last id by provider/entity description
APIScriptRWU.LAST_AUTO_INCREMENT('Test Provider','Customer');