Skip to content
Пилотная фаза – пока не коммерческое предложение. Первые 500 пользователей работают бесплатно и дают нам обратную связь. Первый тарифный раунд стартует в мае 2027
Firmspace
Назад в блог

The Column You Cannot Delete While It Has Cards: Rebuilding a CRM Pipeline Without Orphans

A sales pipeline looks like a row of columns, so it is easy to forget that a column is not a folder. In Firmspace CRM a stage is a record with a name, a colour and a position, and every deal points at one of them. That is why the board treats two deletions very differently: an empty column disappears after a click, a column with cards refuses to go.

The refusal is not a warning that can be dismissed. The API answers with 409 and the code stage_not_empty, together with the number of cards inside. Nothing is deleted until the caller names the column the cards should move to. The message is plain: the column has cards, choose a column to move them to.

This strictness has a history. In an earlier version a column could be removed together with its deals, while tasks, invoices and expenses that referred to those deals stayed behind, pointing at records that no longer existed. The current rule is the opposite: cards are never deleted as a side effect of tidying the board.

A new firm starts with six columns — New Lead, Contacted, Qualified, Proposal, Negotiation and Won — created the first time the board is opened. New columns are appended to the right, and their order is stored as a number, so dragging a column rewrites the whole sequence rather than one value.

Renaming and recolouring are deliberately narrow. The name field in the column header accepts up to 60 characters. The colour is either a full hex value such as #7C93FF or an empty string, which means the default colour of the position; anything else is rejected with a 400. The column order endpoint simply writes the index of each id it receives and silently skips ids that belong to someone else.

An empty column is cheap to remove: the same endpoint deletes it and reports that zero cards were moved. There is no soft delete and no undo, so the name disappears from the board for good.

For a column with cards the request needs a destination. The cards are moved to the end of the target column, keeping their previous relative order, and the column is deleted in the same transaction. If the target is missing, is the same stage, or does not belong to the firm, the answer is the same 409 and nothing changes.

Every moved card loses its win mark. A deal that was marked as won and is moved into an ordinary column becomes an open deal again, because the mark is a date field, not a property of the column. The board shows the trophy next to the client name, and a win is also recorded as an event for automation.

It is worth saying out loud: the trophy is not a seventh column. The default board happens to end with a column called Won, but winning is a separate flag with a timestamp. A card can therefore sit in a column named Won without a trophy, and dragging a card out of that column clears the mark like any other move.

A stage change leaves three traces. The card's own history gets an entry with the new column name, the client's feed gets a line that this deal moved, and an event of type deal_stage is emitted. Automation rules can be limited to one stage, but that filter applies only to deal_created and deal_stage; other events are not filtered by column.

The assistant works inside the same rules. It can list the columns in order, read the deals in them and move a deal to another stage, and that last action always asks for confirmation. It has no tool to create, rename, reorder or delete a column, and it cannot empty a column to make a deletion possible.

Deleting a card is a different operation with a different outcome. There is no 409: the deal is removed, while its tasks, documents and expenses are unlinked and remain with the client. A note is written to the client's history that the deal was deleted. Invoices and contracts are not touched by this call.

The board has two drop zones that exist only while a card is being dragged. The left edge of the first column offers deletion and always asks for confirmation first. The right edge of the last column marks the deal as won. While the board search is active, cards cannot be dragged at all, because the visible order no longer matches the stored one.

A calm way to rebuild a pipeline: create the target column, rename it if needed, move the cards stage by stage, then delete the empty column. Before that, check which automation rules are tied to the old stage and whether any card is marked as won, because the move will clear the mark. There is no bulk merge of two columns and no undo for a deletion.

What remains outside this text: how often firms actually merge columns, and which rules they most often bind to a stage. Those questions need access to product analytics, and no such numbers are invented here.

Автоматизируем ваш следующий процесс вместе.

Опишите повторяющийся рабочий процесс. Мы вместе проверим, можно ли его разумно автоматизировать.