How to add entity name in event based certification email Template

Dear Ambassador’s,

I wanted to add entity name in email subject from event-based Certification, is there any scope or any possibilities? to achieve these?

Hi @charankoona ,

Could you please provide more details about your requirement.

Hi @Chathurya

I have setup for mover event-based certification to the line manager, now i wanted to add identity name who got change in email.

Ex: charan is moved from IAM department to Audit department, certification will be triggered to charan’s manager, I want Charan name in the certification email subject.

@charankoona

By default it is Certification template for initial notification , you can create a copy of this

template and modify this according to your requirement and set the created Email Template for initial notification.

image

Add the following lines in the body of the custom template to include identityName in subject.

#foreach ($entity in $certification.entities)

#set($identityName = $entity.targetName)

#end

Add the following lines in inputs in email template.

 <Argument name="identityName" type="string">
        <Description>The display name of the Identity that owns the certification.</Description>
      </Argument>

HI @charankoona As you are going to use Certification event and each event will trigger for one identity so one way is $certification.getEntities().get(0).getTargetName()

It will give Identity name for which entity is there and that will be one identity