Retrieve group label from group name in mail template

Is there any FTL syntax that could allow me to retrieve the group label from its name in an email template ? It seems it could be possible in MVEL with something like

@{org.nuxeo.runtime.api.Framework.getService(org.nuxeo.ecm.platform.usermanager.UserManager).getGroup(XXX).getLabel()}

but when it comes to scripting language, it seems there is one language for each case : why MVEL is not allowed in emails, at least in studio ?

0 votes

1 answers

7530 views

ANSWER



Some workaround : put the desired MVEL in a context variable :-(

0 votes