Using the merge_variables lookup
To merge variables that match the given prefixes, suffixes, or regular expressions, you can use thecommunity.general.merge_variableslookup. For example:
For more details and example usage, refer to thecommunity.general.merge_variables lookup documentation.