Skip to content

Comments

feat(KNO-11417): Docs for Update User / Tenant / Object#1310

Open
andy-knock wants to merge 1 commit intomainfrom
update-recipient-docs
Open

feat(KNO-11417): Docs for Update User / Tenant / Object#1310
andy-knock wants to merge 1 commit intomainfrom
update-recipient-docs

Conversation

@andy-knock
Copy link
Contributor

@andy-knock andy-knock commented Feb 10, 2026

Description

Add docs for Update User, Update Tenant, Update Object steps

NOTE: I will not ship this PR till we actually launch the feature, only publishing it for review / revision.

Screenshots

image

@vercel
Copy link

vercel bot commented Feb 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Feb 10, 2026 3:55pm

Request Review

### Function steps

A function is a step in a workflow that does something to the data being passed in your trigger call. You can use functions by entering the workflow builder and adding function steps onto the canvas.
A function is a step in a workflow that does something to the data being passed in your trigger call. You can use functions by entering the workflow builder and adding function steps onto the canvas. In the workflow builder, functions are grouped in tabs. The **Data functions** tab includes steps that update data in Knock during a workflow run.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phrasing check here about the differences of Data functions.

section: Designing workflows
---

The **Data functions** tab in the workflow builder includes three steps that update data in Knock during a workflow run: **Update user**, **Update tenant**, and **Update object**. They all work the same except Update object doesnt't support "Current object" mode. Use them when you need to change a [user](/concepts/users), [tenant](/concepts/tenants), or [object](/concepts/objects) based on workflow context so that downstream steps, [audiences](/concepts/audiences), or other workflows see the updated data.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"They all work the same except Update object doesnt't support "Current object" mode"

phrasing check.

I do think its more efficient to talk about all 3 steps on 1 docs page


The **Data functions** tab in the workflow builder includes three steps that update data in Knock during a workflow run: **Update user**, **Update tenant**, and **Update object**. They all work the same except Update object doesnt't support "Current object" mode. Use them when you need to change a [user](/concepts/users), [tenant](/concepts/tenants), or [object](/concepts/objects) based on workflow context so that downstream steps, [audiences](/concepts/audiences), or other workflows see the updated data.

Common use cases include syncing state from your trigger (for example, "last notified at" on a user, approval status on a tenant, or status on an object), making a user eligible for a dynamic audience or [guide](/concepts/guides), updating [preferences](/preferences/overview) or [tenant-level preference defaults](/preferences/tenant-preferences), or storing channel data (for example, a Slack channel id on an object).
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


## Debugging

You can use the [workflow run logs](/send-notifications/debugging-workflows) to debug these steps. The logs capture the change made by the step so you can verify the pre-state, the properties that were set, and the post-state.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edit this to align with the final logging behavior.

@andy-knock andy-knock changed the title feat(): Docs for Update User / Tenant / Object feat(KNO-11417): Docs for Update User / Tenant / Object Feb 10, 2026
@linear
Copy link

linear bot commented Feb 10, 2026

@andy-knock andy-knock marked this pull request as ready for review February 10, 2026 16:08
@andy-knock andy-knock requested a review from cellomatt February 11, 2026 15:57
section: Designing workflows
---

The **Data functions** tab in the workflow builder includes three steps that update data in Knock during a workflow run: **Update user**, **Update tenant**, and **Update object**. They all work the same except Update object doesnt't support "Current object" mode. Use them when you need to change a [user](/concepts/users), [tenant](/concepts/tenants), or [object](/concepts/objects) based on workflow context so that downstream steps, [audiences](/concepts/audiences), or other workflows see the updated data.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The **Data functions** tab in the workflow builder includes three steps that update data in Knock during a workflow run: **Update user**, **Update tenant**, and **Update object**. They all work the same except Update object doesnt't support "Current object" mode. Use them when you need to change a [user](/concepts/users), [tenant](/concepts/tenants), or [object](/concepts/objects) based on workflow context so that downstream steps, [audiences](/concepts/audiences), or other workflows see the updated data.
The **Data functions** tab in the workflow builder includes three steps that update data in Knock during a workflow run: **Update user**, **Update tenant**, and **Update object**. Use them when you need to change a [user](/concepts/users), [tenant](/concepts/tenants), or [object](/concepts/objects) based on workflow context so that downstream steps, [audiences](/concepts/audiences), or other workflows see the updated data.

I think you can actually leave this out since you mention it below in object-specific section.


How you specify which entity to update depends on the step type.

### Update user and Update tenant
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like you could break these into their own headings so users, tenants, and objects all have an 'on this page' entry.


In the step editor you can edit properties as a JSON blob or in key-value form. Updated properties are stored in Knock and are available to subsequent workflow steps and to the Management API.

### Updating user preferences (Update user only)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could nest this under update user section so all that info is self-contained

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants