and more in a single search tool across platforms. Read the announcement here. |
02/12/2024 08:06 PM - edited 02/12/2024 08:22 PM
Hi,
We are currently using same email template for new account and modify (add access) andplanning to use the same only, we have applied a condition on requesttype but we now want to add another condition for new account(Alone) to separate the text from add access(Modify)
(There could be use case where account and role are request together in one request).
Note - We are using a parallel workflow with a split of approval for entitlement and account.
Current-
requesttype is new account or add access(Picks for both newaccount(alone) and modify ....."request for add access is created"
New -
to use condition if(only new account request) - "Request created to create an account.
to use condition if(add access request) - "Request to add access created.
What condition can we use to separate both of these?
Thanks
02/12/2024 11:09 PM
You can't separate as requesttype is single colum under ars_requests
To get what variables are present to use in the email template, check using the below expression. By putting it in the email body, it will print all variable names with values, and then accordingly, you can use it:
${this.binding.variables.each {k,v -> println "$k = $v" + "" + "br" + ">"}}
02/13/2024 02:36 AM
Hi @rushikeshvartak , Can we check entitlement in email template? It will help to design if else statement.
02/13/2024 02:31 AM
@NM- can you give clarify the requirement please ? it is for email template design or worflow?
02/13/2024 02:34 AM
Hi @CR , It is for email template design.
02/13/2024 02:59 AM - edited 02/13/2024 03:04 AM
Please try sample below
<td><% if (request.requesttype == 29) print "Enable Account" else print requesttype%></td>
</tr>
<tr style="border-bottom: 1px solid black;">
<td><strong>Request Submitted Date</strong></td>
<td>else if (request.requesttype == 30) print "Disable Account" else if (request.requesttype == 28) print "Update Access End Date"</td>
Refrence link :
02/13/2024 10:55 AM
Hi @CR , Can we distinguish between request for entitlement and new account(alone) in the same email template?
Use Case 1 - New account request (Alone) sample template for grant access. block.
print " Request for create account completed."
Use case 2 - Request for entitlement with new account.
print " Request for account and Role completed."
Requstype won't work as user can submit new account and entitlement both in one request and it will have request type as "new account."
02/13/2024 01:01 PM - edited 02/13/2024 01:02 PM
We can’t distinguish
can you share response of binding variables you got in text format to check possible solutions
02/14/2024 02:50 AM - edited 02/14/2024 08:46 PM
Hi @rushikeshvartak, @CR One query, what i have seen in the case of parallel workflow suppose two request (entitlement and new account) goes to same person for approval, Approver approves the first request(Say new account) but didn't take any action in first go for entitlement now task got created done.... Now approver visit the pending approval again and approve the remaining entitlement request(Same grant access block for account and entitlement approval)..
what i see only one mail coming through containing both the account and entitlement details, Is this an expected behavior that we will be receiving only one email?
02/14/2024 09:18 PM
what i have seen in the case of parallel workflow suppose two request (entitlement and new account) goes to same person for approval, Approver approves the first request(Say new account) but didn't take any action in first go for entitlement now task got created done.... Now approver visit the pending approval again and approve the remaining entitlement request(Same grant access block for account and entitlement approval)..
what i see only one mail coming through containing both the account and entitlement details, Is this an expected behavior that we will be receiving only one email?
This is expected behaviour
02/14/2024 10:31 PM
Thanks! What sort of check does sviynt does for sending combined email? As noticed recently if i trigger the job before entitlement approval in that case it triggers to separate email for account(Grant access block)
02/14/2024 10:36 PM - edited 02/14/2024 10:37 PM
Its sent based on request type.
Where did you configured email templates ?
02/14/2024 11:06 PM
emails are configured on workflow level.
02/14/2024 11:07 PM
It will be sent per request type
02/14/2024 09:13 PM
Yes we can sent one mail only for entitlement and Account creation , think so don't have separate flow is available or not through , raise the ticket if required they will help if any possible sol handy.