cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ticket emails can not access local.properties

Former Member
0 Likes
385

Hello everyone, I am trying to access local.properties keys from email-customerTicketCreatedBody.vm but I can't access them. It is using AbstractTicketContext.class. When I implemented it and I had error. How can I access local.properties keys from ticket emails?

Accepted Solutions (1)

Accepted Solutions (1)

0 Likes

Config.getString(property_name, default_value_if_not_found)

Former Member
0 Likes

Thank you.

Answers (1)

Answers (1)

svintha
Explorer
0 Likes

Hi , if you have to access a field in vm file, that should be available in the context class . Create a new filed of string type in class which is extending the AbstractTicketContext . Add setters and getters to the new field and for the getter method retun the below value from the configuration i.e.

 Config.getString(localpropertykey, "default value")
Former Member
0 Likes

Thank you.