Update Hive subaction title with parent title

Customer Data Platform

What it does

When a subaction is created in Hive with a parent ID, this automation retrieves the parent details. It updates the subaction title to include the parent title if not already present.

Who it's for

Operations teams who need subactions labeled with parent context automatically in Hive.

Apps used

How teams use this

Organize subactions under parent context

Subactions automatically inherit the parent title so team members see the full context without opening the parent. This keeps the hierarchy clear in Hive lists.

Prevent duplicate parent titles in names

The automation checks whether the parent title already exists in the subaction title before updating. This avoids redundant text when the subaction is edited multiple times.

Extend naming with custom prefix format

Modify the update step to add a prefix or separator between the parent title and subaction title. Set a consistent format like Parent - Subaction across all new subactions.

Sync parent context to external systems

Include a step that sends the updated subaction title to another system so external teams see the parent context. Only subactions with parent titles are synced.

How it works

  1. Detect new subaction in Hive. A new or updated item is created in Hive with a parent ID. The automation triggers in real-time when this occurs.
  2. Retrieve parent details from Hive. Fetch the parent item details from Hive to get its title and other information needed for the subaction update.
  3. Check if parent title exists. Compare the parent title against the subaction title to determine whether the parent name is already included in the subaction.
  4. Update subaction title in Hive. Affix the parent title to the subaction title in Hive only when the parent title is not already present in the subaction name.