Click HERE to see how Saviynt Intelligence is transforming the industry. |
02/28/2024 06:26 AM
Hi Team,
I Have requirement based on customer value need to send mail , as of now secondarymanager email id saving in cp7 value. i need include exiting logic. could help on this issue please?
secondarymanager=cp7
vendormanager=cp59
Current working synatax: <% if (null!=user.customproperty59 && user.customproperty59!='') print"${user.customproperty59}" else print "${user.vendorManager.email}"%>
i need include based on customer = 15 need to secondary manager (cp7 we have value mail id)
tried :
working alone 1 :
<% if (null!=user.customproperty7 && user.customproperty7!='') print"${user.customproperty7}" else print "${user.secondaryManager.email}"%>
Have 2 cases :
1. Secondarymanager,VendorManager combination also it sholud trigger both
2..only vendorManager will pass
3. only Secondarymanager will pass
tried below not working used user.customer=15 and without comma print stement , above 2 and 3 separately tried but not working
<%
if(null!=user.customproperty59 && user.customproperty59!='' && user.customer.customerkey!='' && user.customer.customerkey==15) print"${user.customproperty59}" "${user.customproperty7} else print "${user.vendorManager.email},"${user.secondaryManager.email}" || (user.customer.customerkey!='' && user.customer.customerkey==15) print "${user.customproperty7} || (null!=user.customproperty59 && user.customproperty59!='') print"${user.customproperty59}" else print "${user.vendorManager.email} || (null!=user.customer.customerkey && user.customer.customerkey==15) print "${user.customproperty7}" else print "${user.secondaryManager.email}"
%>
Solved! Go to Solution.
02/28/2024 08:21 PM
<%
if (null != user.customproperty59 && user.customproperty59 != '') {
if (user.customer == 15) {
print "${user.customproperty7}"
} else {
print "${user.customproperty59}"
}
} else {
print "${user.vendorManager.email}"
}
%>
02/28/2024 09:40 PM
thanks @rushikeshvartak
Not working , mail not going to cp7 and it printing empty.
and we tried same type of scenario when customer object passing email not getting cp7 person
04/18/2024 07:11 PM
share variable list
05/05/2024 07:43 AM - edited 05/05/2024 07:44 AM
Hi ,
When we use multiple condition it throwing error un-support values , i was changed the requirement and different way achieved.
<%
if(null!=user.customproperty59 && user.customproperty59!='' && user.customer.customerkey!='' && user.customer.customerkey==15) print"${user.customproperty59}" "${user.customproperty7} else print "${user.vendorManager.email},"${user.secondaryManager.email}" || (user.customer.customerkey!='' && user.customer.customerkey==15) print "${user.customproperty7} || (null!=user.customproperty59 && user.customproperty59!='') print"${user.customproperty59}" else print "${user.vendorManager.email} || (null!=user.customer.customerkey && user.customer.customerkey==15) print "${user.customproperty7}" else print "${user.secondaryManager.email}"
%>