Skip to main content
Cadet | Tier 2
June 3, 2022
Question

Variable in Email with HTML Design

  • June 3, 2022
  • 21 replies
  • 1255 views

Hello,

 

I used AA A360 and i want to use a variable in an email send with HTML design.

This does not work in HTML design, but only in plain text.

 

Is there a way to still use a variable in HTML design?

 

mail

    21 replies

    Cadet | Tier 2
    June 5, 2022

    Hi,

     

    I think no way

    Navigator | Tier 3
    September 20, 2022

    Believe it has to be HTML Code. You can convert Text to HTML Code using an online converter like https://www.textfixer.com/html/convert-text-html.php

    Navigator | Tier 3
    February 10, 2023

    Looks to be a limitation.. I do not see a way to achieve it & was forced to use HTML code instead.

    Navigator | Tier 3
    August 4, 2025

    This needs to be fixed, as it requires a ton of work writing out HTML code for long links that are better suited as alt text, where you want to also include variables for other items. 

    Padmakumar
    Premier Pathfinder | Tier 7
    Premier Pathfinder | Tier 7
    August 5, 2025

    Hi All,

     

    In A360, when sending emails with HTML design, using variables directly inside the HTML content may not work as expected if you insert them as plain text.

    To use a variable inside an HTML email body, you typically need to:

    1. Construct the entire HTML content as a string variable, embedding the variable values dynamically within that string.
    2. Use that string variable as the email body in the "Send Email" action set to HTML format.

    For eg:

    • Create a string variable that holds your HTML content.
    • Within that string, concatenate or insert your variable values in the appropriate places.
    • Pass this string variable as the email body with the HTML Design option enabled.

    This approach allows the variable values to be rendered correctly inside the HTML email.

    Padmakumar
    Navigator | Tier 3
    August 5, 2025

    Hi All,

     

    In A360, when sending emails with HTML design, using variables directly inside the HTML content may not work as expected if you insert them as plain text.

    To use a variable inside an HTML email body, you typically need to:

    1. Construct the entire HTML content as a string variable, embedding the variable values dynamically within that string.
    2. Use that string variable as the email body in the "Send Email" action set to HTML format.

    For eg:

    • Create a string variable that holds your HTML content.
    • Within that string, concatenate or insert your variable values in the appropriate places.
    • Pass this string variable as the email body with the HTML Design option enabled.

    This approach allows the variable values to be rendered correctly inside the HTML email.



    How do you put variables in the default value section of the String variable creation window?

    Padmakumar
    Premier Pathfinder | Tier 7
    Premier Pathfinder | Tier 7
    August 5, 2025

    Hi All,

     

    In A360, when sending emails with HTML design, using variables directly inside the HTML content may not work as expected if you insert them as plain text.

    To use a variable inside an HTML email body, you typically need to:

    1. Construct the entire HTML content as a string variable, embedding the variable values dynamically within that string.
    2. Use that string variable as the email body in the "Send Email" action set to HTML format.

    For eg:

    • Create a string variable that holds your HTML content.
    • Within that string, concatenate or insert your variable values in the appropriate places.
    • Pass this string variable as the email body with the HTML Design option enabled.

    This approach allows the variable values to be rendered correctly inside the HTML email.



    How do you put variables in the default value section of the String variable creation window?

    There is an action called String-> Assign. You can use that.

    Padmakumar
    Padmakumar
    Premier Pathfinder | Tier 7
    Premier Pathfinder | Tier 7
    August 5, 2025

    Hi All,

     

    In A360, when sending emails with HTML design, using variables directly inside the HTML content may not work as expected if you insert them as plain text.

    To use a variable inside an HTML email body, you typically need to:

    1. Construct the entire HTML content as a string variable, embedding the variable values dynamically within that string.
    2. Use that string variable as the email body in the "Send Email" action set to HTML format.

    For eg:

    • Create a string variable that holds your HTML content.
    • Within that string, concatenate or insert your variable values in the appropriate places.
    • Pass this string variable as the email body with the HTML Design option enabled.

    This approach allows the variable values to be rendered correctly inside the HTML email.



    How do you put variables in the default value section of the String variable creation window?

     

    You can use String -> Assign action.

    Padmakumar
    Navigator | Tier 3
    August 5, 2025

    Hi All,

     

    In A360, when sending emails with HTML design, using variables directly inside the HTML content may not work as expected if you insert them as plain text.

    To use a variable inside an HTML email body, you typically need to:

    1. Construct the entire HTML content as a string variable, embedding the variable values dynamically within that string.
    2. Use that string variable as the email body in the "Send Email" action set to HTML format.

    For eg:

    • Create a string variable that holds your HTML content.
    • Within that string, concatenate or insert your variable values in the appropriate places.
    • Pass this string variable as the email body with the HTML Design option enabled.

    This approach allows the variable values to be rendered correctly inside the HTML email.



    How do you put variables in the default value section of the String variable creation window?

     

    You can use String -> Assign action.



    So literally put the entire contents of a possible long email in a single line on the string assign action? You cannot expand to see if it’s formatted correctly?

    Padmakumar
    Premier Pathfinder | Tier 7
    Premier Pathfinder | Tier 7
    August 6, 2025

    Hi All,

     

    In A360, when sending emails with HTML design, using variables directly inside the HTML content may not work as expected if you insert them as plain text.

    To use a variable inside an HTML email body, you typically need to:

    1. Construct the entire HTML content as a string variable, embedding the variable values dynamically within that string.
    2. Use that string variable as the email body in the "Send Email" action set to HTML format.

    For eg:

    • Create a string variable that holds your HTML content.
    • Within that string, concatenate or insert your variable values in the appropriate places.
    • Pass this string variable as the email body with the HTML Design option enabled.

    This approach allows the variable values to be rendered correctly inside the HTML email.



    How do you put variables in the default value section of the String variable creation window?

     

    You can use String -> Assign action.



    So literally put the entire contents of a possible long email in a single line on the string assign action? You cannot expand to see if it’s formatted correctly?

     

    While assigning the value, the field will get auto-expanded based on the length of the content. Once you finished and saved, it will shrink to its actual appearance (doesn't mean that your original content will also gets shrinked)

     

    If you feel it is less convenient, you may generate the content on a Notepad and later copy-paste it to the assign section.

     

     

    Padmakumar