and more in a single search tool across platforms. Read the announcement here. |
06/28/2024 01:13 AM
Hello all,
In the ARS, we have a Dynamic attribute named 'Additional Comments' which is a Plain Text Field.
And we need to enter the comments regarding the requesting access as shown in the screenshot below.
How to bring this value in the Email template?
I have used both the below syntaxes:
${accessItems.collect{it.request_access_attrss.findAll{it.attributeName.toString().equalsIgnoreCase('Additonal Comments')} .collect{it.attributeName.toString() + ': ' + it.attributeValue}.join('###')}.toString().replaceAll('\\[','').replaceAll('\\]','').replaceAll('\\,','')}
${dynamicAttrsList.find{ it.attributeName?.equalsIgnoreCase('Additonal Comments') }?.attributeValue}
And I got the below error:
We see the above error in the Email History Job log details.
It is saying that , there is no such property called 'IT'. 'it' is a keyword causing the issue here.
Any suggestions please!
Thanks & Regards,
SaviyntSavvy
06/28/2024 01:25 AM
@Saviynt_Savvy Where did you attach this email template and when this will be triggered?
06/28/2024 02:45 AM
Hi @Saviynt_Savvy ,
Try below:
${accessItems.collect{it.request_access_attrss.find{it.attributeName.toString().equalsIgnoreCase('Premdynamicattribute')}.collect{it.attributeValue}}}
OR
${task?.requestAccessKey?.collect{it.request_access_attrss.findAll{it.attributeName.toString().equalsIgnoreCase('Premdynamicattribute')}.collect{it.attributeValue}}.get(0)}
If this helps your question, please consider selecting Accept As Solution and hit Kudos
06/28/2024 08:24 PM
Are you storing attribute in accounts column ?