<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello,<br><br>I am having trouble finding a solution on how to create conditional assignments in an Object Template. I have an Object Template and I would like to see if the Focus user's attribute "organization" matches to a specific string before creating my assignment. See mapping below<br><br> <mapping><br> <source><br> <c:path>organization</c:path><br> </source><br> <expression><br> <value><br> <targetRef oid="resource-oid-123-456" type="c:ResourceType"/><br> </value><br> </expression><br> <target><br> <c:path>assignment</c:path><br> </target><br> <condition><br> <script><br> <description><br> Create a condition to see that the organization matches<br> </description><br> <code>organization == 'org'</code><br> </script><br> </condition><br> </mapping><br><br>This is the point where I am stuck. I figured that the example above is somewhat correct, but the condition is still never true even though I know my focus user's organization is 'org'. I am not very familiar with expressions and conditions yet. I tried to find the answer in Wiki, but didn't find a related example. I also looked into the live demo's Object Template, where a similar thing is done, but it did not help me here.<br><br>Best Regards<br>Samu Viitanen<br> </div></body>
</html>