Subject Expressions for email Templates

 

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.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

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.

Syndicate content