Search

saveUserOperationsLog

Write a custom log entry in user activity log.

User activity log is displayed in ERPLY backend, in Settings » Log of deleted items. As the name suggests, the log is mostly used for tracking deleted records. We strongly recommend to check with ERPLY development team before using the log for custom purposes.

Logs can be queried with getUserOperationsLog, but functionality is currently limited.

Input parameters

Parameter nameDescriptionPossible valueRequired
tableNameOne of the following: "customers", "employees", "suppliers", "addresses", "currencies", "customerGroups", "emailAccounts", "giftCards", "pointsOfSale", "priceLists", "productGroups", "products", "services", "supplierGroups", "users", "userGroups", "warehouses", "events", "purchaseDocuments", "salesDocuments", "pricelistProducts", "pricelistServices", "pricelistDiscounts", "payments" — or a custom stringString
userNameString
timestampUnix timestamp
operationString(25) yes
itemIDInteger
moduleString(25)

Response

Field nameTypeDescription
logIDIntegerID of the newly-created item