[midPoint] cannot use extensions in notification body?
Pálos Gustáv
gustav.palos at evolveum.com
Tue Jan 8 20:58:21 CET 2019
Hi,
I use the same way to get extension attributes at least
in simpleUserNotifier bodyExpression.
Try to log his value (is not empty?), maybe you have a problem with the
comparison, try basic.stringify(...) or equal()...
Best regards,
Gustav
ut 8. 1. 2019 o 20:46 Jason Everling <jeverling at bshp.edu> napísal(a):
> I was working on updating some ancient notifications we have, streamlining
> them, and noticed when using an extension attribute it doesn't work or when
> it sends it sends a blank body even though the attribute values are correct
>
> For example, the below doesn't work in body expression but they work fine
> in subject expression, is there a different way to do it in body?
>
> body = ''
>
> if (basic.getExtensionPropertyValue(requestee, 'http://the.namespace.com',
> 'attr1') == 'someValue') {
> body = "This messege"
> } else if (basic.getExtensionPropertyValue(requestee, '
> http://the.namespace.com', 'attr2') == 'someValue') {
> body = "Different messege"
> } else {
> body = "Last messege"
> }
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
--
Gustáv Pálos
Identity Engineer
evolveum.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20190108/3481fecf/attachment.htm>
More information about the midPoint
mailing list