object-events

Selects, writes, and reviews 1C:Enterprise object event handlers with exchange guards and cancel-parameter rules.

1|2|Updated Jul 19, 2026
One-click install
npx skills add https://github.com/IngvarConsulting/unica-marketplace --skill object-events-ingvarconsulting
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: object-events
Source: https://github.com/IngvarConsulting/unica-marketplace/tree/main/plugins/unica/skills/object-events
Command: npx skills add https://github.com/IngvarConsulting/unica-marketplace --skill object-events-ingvarconsulting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Choosing the wrong 1C object event handler (ПередЗаписью, ПриЗаписи, ОбработкаПроверкиЗаполнения, and others) or missing the ОбменДанными.Загрузка guard leads to broken data exchange, lost Отказ flags, and hidden subscription logic that corrupts objects during write and delete operations. ## Core Features & Use Cases - Handler Selection Model: Maps what the logic needs to observe (fill source, old values, written state) to the correct handler among ОбработкаЗаполнения, ОбработкаПроверкиЗаполнения, ПередЗаписью, ПриЗаписи, ПередУдалением, and ПриКопировании. - Exchange and Cancel Rules: Enforces the ОбменДанными.Загрузка guard in write and delete handlers and subscriptions, and restricts Отказ to only ever being assigned Истина, per standards 773, 686, and АПК:144. - Subscription Discovery: Uses Unica MCP tools (unica.code.outline, unica.code.search, unica.meta.info) to find event subscriptions invisible from the object module before changing handler logic. - Use Case: When adding validation to a catalog write, the skill locates existing subscriptions, places the check in ОбработкаПроверкиЗаполнения with НепроверяемыеРеквизиты handling, applies the patch via unica.code.patch, and verifies with unica.code.diagnostics. ## Quick Start Ask the assistant to review or write a ПередЗаписью handler for a 1C catalog object, including the exchange guard and subscription check.

Frequently Asked Questions about object-events

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between ПередЗаписью and ПриЗаписи in 1C?▼

Choose based on what the logic needs to see. Use ПередЗаписью when you need old stored values or must fill and check data before the write; use ПриЗаписи only when the object must already exist in the database, and never modify the object there.

How to write an ОбработкаПроверкиЗаполнения handler in 1C?▼

Collect conditional attributes into НепроверяемыеРеквизиты and remove them from ПроверяемыеРеквизиты at the end of the handler. Never add names to ПроверяемыеРеквизиты, since that hides the conditional check from the platform's fill-check analysis.

Why check ОбменДанными.Загрузка in 1C event handlers?▼

The guard prevents business logic, extra checks, and data changes from running during data exchange loads, which could distort data or block loading. It must appear first in ПередЗаписью, ПриЗаписи, and ПередУдалением, including subscription handlers.

Can I assign Ложь to the Отказ parameter in 1C handlers?▼

No. Отказ should only ever be assigned Истина, never Ложь or a boolean function result, because that can clear a Истина set earlier in the same handler or by another subscriber. Every refusal should also report a reason to the user.

Why does my object module change not affect event behavior in 1C?▼

Event subscriptions run handlers outside the object module and are invisible from it. Search for subscriptions on the same events with unica.code.search and unica.meta.info before concluding what runs on write or delete.