ErpActor class describes the primary carrier that is passed to and from a Sync Connection. It is a representation of an ERP actor containing a key set of properties for identification and mandatory fields, along with a key-value list of fields and their values.
ErpActor members
LastModified can be “any” timestamp, but there are 2 basic requirements:
- It needs to be incremental: when comparing two LastModified values on the same actor from the same connection, it must be possible to determine which one is older without knowing the specific format and build-up of the value itself.
- It needs to be “global”, which means that if Erp Sync compares the timestamps of two different actors, it must be able to determine which one is newer. For this reason, a “version number” specific to each actor will not be sufficient.
ErpActorType
For the connection, theErpActorType value in combination with the ErpKey value will be the identifier that uniquely identifies each actor object.
For example, an ErpActorType value of Customer and ErpKey value of 12345 might probably mean that the connection should look in its customer table for the actor with customer ID 12345.
ErpActorType is an enumerator in SuperOffice.Plugins, but for communication purposes to and from the connector it is sent as a string (“Customer”, “Supplier”, and so on) to minimize future compatibility problems if the enumerator changes over time.
Employee and Sale are not currently supported in Erp Sync, but the connector may choose to offer these types for future compatibility.