08-02-2022 08:46 AM
We have an additional requirement for Workflow. Where in the existing workflow the request is first getting triggered to one user group after the user group approve it will went to the entitlement owner approval.
Now all roles which begin with ERP* we need to send a mail to another group(only mail triggering no approval required after the entitlement owner approves the request this mail should triggered).Apart from roles that start with ERP* their are roles that does not start with ERP.
The following query is giving me the response in Data Analyzer correctly.
select entitlement_value from entitlement_values where entitlement_value like "ERP%" and (entitlementtypekey=25 and status=1)
I tried 2 approach to do it.
1. With If-Else block but I am facing difficulty to write the groovy expression. Also If -Else block does not content any email triggered section how to include the email as well?
2. I tried with the custom assignment and put the above query but the issue that I am facing is custom assignment has approved , reject option the reject option. I dont want that users who are requesting for roles that does not have ERP went to reject access block.
Any help is appreciated.
08-02-2022 03:43 PM
08-02-2022 11:50 PM
Hi @Souvik ,
You may use the Email Template in the Grant Access Block after all approval is completed in the workflow. You may want to handle the logic of when to send an email and not send an email in the email template itself. You may want to manipulate the TO field in the email template.
08-03-2022 05:25 AM
In the grant access block we are already triggering mail to the requestor and one user group mail I added in CC part that the request had been approved and the user group needs to perform some modification from there end.
So I cant include the new group email there as the mail will become very large(Client dont want as well) and It will trigger to the requestor and 2 group.
08-04-2022 12:06 PM
Create an email template for the new group with conditions on the entitlement_value as needed and assign it as a task creation email template on the endpoint level. Maybe that will satisfy your requirement.
08-16-2022 12:25 AM
Can you please provide me any sample how to create email templates with conditions on the entitlement_value as needed .