Subject Expressions for email Templates
Submitted by Ben_Charlton on Thu, 16/06/2022 - 16:42
According to https://openvpms.org/documentation/csh/2.3/admin/template/email/edit
This should evaluate startTime against the document - in this case a customer Statement. However its returning an empty field for startTime and if I use date:format(startTime,long) it returns null.
Re: Subject Expressions for email Templates
The syntax is incorrect - to access nodes of an object in an xpath expression, you need to use openvpms:get(., '<node name>'). e.g., openvpms:get(., 'startTime').
The exception to this is where the object is defined as a variable; here the node can be accessed using $<variable>.<node name> e.g, $location.name in your expression.
That said, there is no startTime node available when emailing statements, nor is there a facility to get the statement date.