Email notification ${current.variables.<variable_name>} not working for one field only.

sjskl
Giga Contributor

Hello Community,
I have problem with showing variables on email notification when service catalog item is created.
Notification works correct, I mean is launched when should be, problem is with showing data.
I created new separated records for that with following tags in what it will contain tab.

Number: ${number}

State: ${state}

Item: ${cat_item}

Target Resolution: ${due_date}

Short description: ${short_description}

LPAR: ${current.variables.VTSCCPLPAR}

SYSPLEX: ${current.variables.VTSCCPSYSPLEX}

Description: ${current.variables.VTSCCPDESC}

Application: ${current.variables.ITDCCPAPP}

All tags showing in email notifications correct, but not Application: ${current.variables.ITDCCPAPP}.
Do you have idea why others showing correct but Application: ${current.variables.ITDCCPAPP} no ?
In screen attachmnets you can find final result of email notification, type of fields taken from variable set, record from what it will contain tab.
Please help.

Kind regards,
Sebastian JaskĂłlski

1 ACCEPTED SOLUTION

Robbie
Kilo Patron
Kilo Patron

Hi Sebastian,

Just circling back on this query. Did you see my reply above and implement the .getDisplayValue() logic provided?

So as to help others with similar questions and problems in the SN community can you please mark correct and/or helpful.

Thanks,

Robbie

View solution in original post

4 REPLIES 4

Robbie
Kilo Patron
Kilo Patron

Hi Sebastian, 

Thanks for supplying the field types. As I thought when reading your question - the field type is a 'Reference' field which is essentially pointing to another table (In your case the applications table).

You need to leverage the .getDisplayValue() method.

Try using:

 ${current.variables.ITDCCPAPP.getDisplayValue()}

 

To help others, please mark correct and/or helpful.

Thanks,

Robbie

Musab Rasheed
Tera Sage
Tera Sage

Which table Application is referring to.? Try with getDisplayValue() once current.variables.ITDCCPAPP.getDisplayValue() otherwise call email script gliderecord to whichever table it is pointing to and print the variable.

Please hit like and mark my response as correct if that helps
Regards,
Musab

Robbie
Kilo Patron
Kilo Patron

Hi Sebastian,

Did you see my reply above and implement the .getDisplayValue() logic?

So as to help others with similar questions and problems in the SN community can you please mark correct and/or helpful.

Thanks,

Robbie

Robbie
Kilo Patron
Kilo Patron

Hi Sebastian,

Just circling back on this query. Did you see my reply above and implement the .getDisplayValue() logic provided?

So as to help others with similar questions and problems in the SN community can you please mark correct and/or helpful.

Thanks,

Robbie