Macros are text expressions that the system evaluates and converts into values. By using macros, you can create dynamic content (for example in emails) and in general configure the application to perform different actions under different conditions. Macros range from simple expressions for loading values from data in the system, to complex sets of instructions that lead to a certain result.
Xperience uses a macro language (K#) with a wide range of syntax options and features.
Learn where in the Xperience administration interface you can enter macro expressions, and about the available assistance features.
One of the most common ways to leverage macros is to define dynamic conditions for various types of functionality.
The system provides a large number of methods that you can call in macro expressions. View this reference to learn about the available methods.
If you encounter problems when working with macro expressions, the system provides several tools that can help identify and fix the issues:
If the default functionality of the macro engine does not cover all of your requirements, developers can extend the macro engine.
Learn to create custom:
Usage of macros is fully supported for the Xperience administration interface and for all processes that run within the administration application, such as marketing automation processes, recalculation of contact scores, and most scheduled tasks.
However, macros are not automatically resolved within text fields when displaying page content on the live site. If you wish to use macros within page content, you need to manually resolve the macros using the API before you render the data on the live site.