Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/05/2024 11:56 PM
Hello,
We are trying to extract the city and state from the location field. For example, Richmond, VA. Then, for domestic employee types, we expect the city to be Richmond and the state to be VA. However, I am encountering an error."
"city": "${user.employeetype == 'Domestic' && user.location?.trim() && !user.location.matches('.*(from home|field sales|remote work).*') ? (user.location.contains(',') ? user.location.substring(0, user.location.indexOf(',')).trim() : user.location.trim()) : ''}",
"state": "${user.employeetype == 'Domestic' && user.location?.trim() && !user.location.matches('.*(from home|field sales|remote work).*') ? (user.location.contains(',') ? user.location.substring(user.location.indexOf(',') + 1).trim() : '') : ''}"
05/06/2024 07:04 PM
"city": "${user.employeetype == 'Domestic' && user.location?.trim() && !user.location.matches('.*(from home|field sales|remote work).*') ? (user.location.contains(',') ? user.location.substringBefore(',').trim() : user.location.trim()) : ''}",
"state": "${user.employeetype == 'Domestic' && user.location?.trim() && !user.location.matches('.*(from home|field sales|remote work).*') ? (user.location.contains(',') ? user.location.substringAfter(',').trim() : '') : ''}"