[midPoint] Velocity Mail template
Ronny Heymans
ronny.heymans at odisee.be
Wed Oct 22 17:15:02 CEST 2025
Dear Miss, Sir,
we have user object with a schema extension.
How can we access the extension property In the mail template (velocity code) ?
For instance if I add $event.extension I can see all my extension properties
PCV(null):[PP({http://example.com/userType}Field1):[PPV(String:value1)], PP({http://example.com/userType}Field2):[PPV(String:value2)]
But if I want to use one of the properties I can't access them.
I tried the following:
$event.extension.Field1
$event.extension["Field1"]
$event.extension[0]
$event.extension.get("http://example.com/userType").Field1
$event.extension.get("http://example.com/userType")["Field1"]
$event.extension.get("http://example.com/userType")[0]
With $event.extension.getAny() I get a list with the fields but the values are empty.
Thanks for the help.
Kind regards
Ronny Heymans
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20251022/8c151730/attachment.htm>
More information about the midPoint
mailing list