Access Request Submitted Email for Requester After Validation Email Template - Adding conditional logic to stop email for a specific access profile

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.

Seems like the subject had more than 250 characters which exceeds the limit. Reduced the subject lines and I was able to save it

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.