Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Get the Parent variable value in Quick Message

ppanganiban
Tera Contributor

I'm trying to get the variable value of a parent HR case but I can't seem to make it work. 

${variables.<variable_name>} works for the variables within the table, but ${parent.variables.<variable_name>} doesn't work and just shows up blank.

1 REPLY 1

Harish KM
Kilo Patron
Kilo Patron

Hi @ppanganiban Ensure there is a variable formatter present on your HR Case. The following below worked for me.

1. Create a formatter to add variables on HR Case

HarishKM_0-1710388766144.png

 

2. Ensured variables are present on HR case

HarishKM_1-1710388798353.png

3. Created a quick message for testing

HarishKM_2-1710388832619.png

4. Tied a case to parent field on HR

5. Click on email and select my quick message created.

6. Variables from parent record populated on body

HarishKM_3-1710388917165.png

 

 

Regards
Harish