Jump to content
Sign in to follow this  
honzad

Assoc fields in notification

Recommended Posts

Hello

I have a field z_classification in entservx table. This table is connected to nr as assoc_entservx BREL entservx.id.
I want to use this field in notification template (rule Modification CI, object Configuration Item).
Value of the field is "ABCD" but that is always displayed as empty in the notification.

Defined in Notification template
Classification: @{ci_id.assoc_entservx.z_classification}

Where is a mistake?

Share this post


Link to post
Share on other sites

hi,

you can access values from many-to-many relation using thier position in list, ex: @{ci_id.assoc_entservx.0.z_classification}

for assoc tables index always will be 0. when other brels like Activity Log or Properties can be iterated through whole list: properties.0.value, properties.1.value, properties.2.value, etc.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×