Using Modifiers to alter data
You learned that variables are placeholders for data coming from previously connected components in your flows that will be eventually replaced with real values once they are available at flow runtime.Modifiers in the Equipme Automation Tool allow you to transform and adjust data within a flow, giving you precise control over how information is processed and formatted before it reaches its destination. Think of modifiers as tools that let you tweak data on the fly—similar to using formulas in Excel but integrated into your automation flow.
What are Modifiers?
Modifiers are adjustments you can apply to variables—placeholders for data that come from previous steps in your flow. For example, if you collect a percentage value (like "75") but need it in decimal format ("0.75") for further processing, modifiers allow you to make that change easily.With modifiers, you can change the format of data, perform calculations, or even use conditionals and loops to shape the variable output. Modifiers are highly flexible, and they can be stacked, meaning you can apply multiple modifiers in sequence to achieve more complex transformations. For example, you might divide a number by 10, add 50, and then round the result.
How to Use Modifiers
To add a modifier, simply click on the variable in your flow, and a Modifiers panel will appear. This panel organizes modifiers into categories based on the type of data you’re working with, such as numbers, dates, or text. Let’s look at an example:
Adjusting Numbers: Imagine you’re working with a "Percentage" field from a form and want to convert "75" to "0.75." In the Modifiers panel, go to the Number category and select the "Div" modifier (which divides values). Specify "100" as the divisor, and your percentage will automatically be divided by 100 when the flow runs.
Modifying Dates: Now let’s say you’re managing employee vacation records and want to send a reminder two days before the vacation ends. In your flow, you can add a modifier to the "To Date" field. Choose the Date category in the Modifiers panel, and apply the "AddSpan" modifier. By setting it to "-2" days, you’ll adjust the date to two days earlier, which you can then use to schedule the reminder notification.
Why Modifiers are Powerful
Modifiers give you fine-grained control over your data, allowing you to customize variables for each step in your flow. They offer pre-built options to transform numbers, dates, text, and more, while also allowing you to stack multiple modifiers for complex transformations.Once you’ve applied a modifier, your variable will visually indicate that it will be adjusted when the flow runs. This way, you can immediately see which data elements are modified and understand how the final data will appear once the flow is active.Modifiers make it easy to handle a range of scenarios by adapting data to fit your exact needs, whether you’re recalculating values, adjusting dates, or formatting information for further actions. They ensure that your data is ready for the next step in your automation flow, enhancing the overall flexibility and effectiveness of your workflows.
Last updated
Was this helpful?