Hi All,
I’m trying to stop this email from being sent for a specific access profile. Here’s what I’ve tried in the email subject but does not seem to work (not able to save the template itself) -
#if($objectDetails.size() > 0)
#foreach($requestedObjectDetail in $objectDetails)
#if(${requestedObjectDetail.objectName} == (‘ABCD’))
#stop#end
Your request for access for
#if($requestDetails && $requestDetails.size() == 1) $requestDetails.get(0).identityName
#elseif($requestDetails.size() > 1) $requestDetails.size()
identities #end was submitted.
In the above script, if I have just the below, it works -
#if($objectDetails.size() > 0)
#foreach($requestedObjectDetail in $objectDetails)
#if(${requestedObjectDetail.objectName} == (‘ABCD’))
#stop#end
But I want the email to be sent for other access items as well with the existing subject. Any suggestions to resolve this is much appreciated.