03/06/2023 04:26 PM
Hi,
I wanted to print the task start date of the future dated task in the revocation email sent to users whose access is going to be revoked.
I tried ${task?.startdate} and also ${com.saviynt.ecm.task.ArsTasks.get(task?.id)?.startdate} but no luck. I see the below error in logs - {"log":"2023-03-07 00:18:35,279 [quartzScheduler_Worker-6] ERROR campaigns.CampaignService - No such property: startdate for class: com.saviynt.ecm.task.ArsTasks\n","stream":"stdout","time":"2023-03-07T00:18:35.279911191Z"}
I have also tried to print all the binding variables for the task object and I do not see the start date so I was wondering if there is any other way to get this information.
Solved! Go to Solution.
03/06/2023 04:32 PM
Are you triggering email from Certification or at Endpoint level?
Also please use this in email template and share the output
${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}
03/06/2023
04:36 PM
- last edited on
03/06/2023
04:49 PM
by
Dave
I am triggering email from certification
Below is the output
task = com.saviynt.ecm.task.ArsTasks : 5552326
manager = abc
campaign = com.saviynt.ecm.campaign.domain.Campaign : 485
baseUrlForEmail = https://release-n-plus-one.saviyntcloud.com/ECM
campaignOwnerAndTheirDelegateEmailList = abc@domain.com
user = xyz
secondarycertifier =
requestor = admin
tasks = com.saviynt.ecm.task.ArsTasks : 5552326
users = xyz
Certification = com.saviynt.ecm.campaign.domain.Certification : 55525425
[This post has been edited by a Moderator to remove sensitive information.]
03/06/2023 04:44 PM
Try this
${task?.startDate}
Also just to understand are you seeing tasks are being created with start date as future for certification revokes?
03/06/2023 04:50 PM
@sk are you thinking this is due to the case? As I already tried with ${task?.startdate} and it did not work
Yes I do see in the arstasks table tasks created with a future start date
03/06/2023 04:54 PM
It worked for me. Looks like it was the case.