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 name Description Possible value Required
tableName One of the following: "customers", "suppliers", "addresses", "currencies", "customerGroups", "emailAccounts", "giftCards", "pointsOfSale", "priceLists", "productGroups", "products", "services", "supplierGroups", "users", "userGroups", "warehouses", "warehouseLocations", "events", "purchaseDocuments", "salesDocuments", "campaigns", "coupons", "pricelistProducts", "pricelistServices", "pricelistDiscounts", "payments", "inventoryRegistrations", "inventoryTransfers", "inventoryWriteOffs", "stocktakings" — or a custom string. string
userName string
timestamp Unix timestamp
operation String(25) yes
itemID integer
module String(25)

Response

Field name Type Description
logID integer ID of the newly-created item