KCode is a powerful feature that lets you display text content from queries, using hierarchical field navigation.
When using KCode, it is important to understand context.
- If you want to display a user's personal information on the website dashboard when they log in, for example their name, the context for the site content comes from the current user.
- If you are sending an email as part of a journey, the context for the email content comes from the journey lead.
Context informs where the KCode comes from and the path the code needs to follow.
We will step through some examples of hierarchical KCode below. These examples use a typical organisational hierarchy, with program participants, sales territories, and sales reps in those territories.
Learn more about organisational hierarchy here
We will be logging in as John Peters, a participant in Carphone Warehouse California.