Custom object on Email Template through VTL

Which IIQ version are you inquiring about?

Version 8.0

Share all details related to your problem, including any error messages you may have received.

Hi Sailors,

Is there any way to pull custom object and its attributes in an emailTemplate object?

Also, how can we configure log within the emailTemplate?

Thank you.

Here is the sample velocity code you can use to get the data from the custom object

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE Custom PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<Custom name="Vishal Custom Common">
  <Attributes>
    <Map>
      <entry key="qarEmailEscalationDays" value="18"/>
    </Map>
  </Attributes>
</Custom>
#set($spctx=$spTools.class.forName("sailpoint.api.SailPointFactory").getMethod("getFactory", null).invoke(null, null).getCurrentContext())
#set($escalationDay=$spctx.getObjectByName($spTools.class.forName("sailpoint.object.Custom"),"Vishal Custom Common").get("qarEmailEscalationDays"))
2 Likes