Click HERE to see how Saviynt Intelligence is transforming the industry. |
12/20/2023 11:19 PM
Hi Team,
We are using below syntax to display the dynamic attribute of a disconnected application on task creation
$ {task?.requestAccessKey?.collect{it.request_access_attrss.findAll{it.attributeName.toString().equalsIgnoreCase('FinCode')}.collect{it.attributeValue}}.get(0).join(', ')}
Output of this is - Finance Report - FRI
However we want to display only 'FRI' in the email template. Can we apply any substring to the above syntax
Solved! Go to Solution.
12/20/2023 11:41 PM
$ {task?.requestAccessKey?.collect{it.request_access_attrss.findAll{it.attributeName.toString().equalsIgnoreCase('FinCode')}.collect{it.attributeValue.split("-")}}.get(0).join(', ')}
12/21/2023 03:18 AM
Tried this but when i try to save the Email template it says - "Operation not allowed as you are entering a value that resembles or contains script code"
12/21/2023 09:18 AM
AM
$ {task?.requestAccessKey?.collect{it.request_access_attrss.findAll{it.attributeName.toString().equalsIgnoreCase('FinCode')}.collect{it.attributeValue.split('-')}}.get(0).join(', ')}
12/21/2023 09:42 AM
@necoutinho : Try below
${task?.requestAccessKey?.collect{ it.request_access_attrss.find{it.attributeName.toString().equalsIgnoreCase('FinCode')}.collect{it.attributeValue}}.get(0).split("-")[1]}
12/21/2023 10:42 AM
Thank you this worked