<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello Davy,</p>
    <p>I have never done that, but doesn't the following work?</p>
    <p>${midpoint.getArchetype(...)}<br>
    </p>
    <p>Best regards,<br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Pavol Mederly
Software developer
evolveum.com</pre>
    <div class="moz-cite-prefix">On 14/06/2021 18:29, Davy Priem via
      midPoint wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:B8FB98C8-9BF0-4586-A25B-FE4625DA34AA@vives.be">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      Hi,
      <div class=""><br class="">
      </div>
      <div class="">I have a bulk task to send notifications to users
        and I would also like to have their archetype name in the
        velocity template. I normally use midpoint.getArchetype()
        function in scripts, but I can’t find how to do this within a
        velocity template. Has anyone any idea?</div>
      <div class=""><br class="">
      </div>
      <div class="">Best regards,
        <div class="">
          <div dir="auto" style="caret-color: rgb(0, 0, 0); color:
            rgb(0, 0, 0); letter-spacing: normal; text-align: start;
            text-indent: 0px; text-transform: none; white-space: normal;
            word-spacing: 0px; -webkit-text-stroke-width: 0px;
            text-decoration: none; word-wrap: break-word;
            -webkit-nbsp-mode: space; line-break: after-white-space;"
            class="">
            <div>Davy Priem<br class="">
            </div>
          </div>
          <br class="Apple-interchange-newline">
        </div>
        <div><br class="">
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
  </body>
</html>