Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Same template for add access request

NM
Regular Contributor III
Regular Contributor III

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

14 REPLIES 14

rushikeshvartak
All-Star
All-Star

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" + ">"}} 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

NM
Regular Contributor III
Regular Contributor III

Hi @rushikeshvartak , Can we check entitlement in email template? It will help to design if else statement.

CR
Regular Contributor III
Regular Contributor III

@NM- can you give clarify the requirement please ? it is for email template design or worflow?


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

NM
Regular Contributor III
Regular Contributor III

Hi @CR , It is for email template design.

CR
Regular Contributor III
Regular Contributor III

 

@NM 

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 :

https://docs.saviyntcloud.com/bundle/KBAs/page/Content/Generating-an-analytical-report-to-view-all-t...


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

NM
Regular Contributor III
Regular Contributor III

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."

We can’t distinguish 

 

can you share response of binding variables you got in text format to check possible solutions 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

NM
Regular Contributor III
Regular Contributor III

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?

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 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

NM
Regular Contributor III
Regular Contributor III

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)

Its sent based on request type.

Where did you configured email templates ?


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

NM
Regular Contributor III
Regular Contributor III

emails are configured on workflow level.

It will be sent per request type


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

CR
Regular Contributor III
Regular Contributor III

@NM 

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.


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.