On the employee record there is a field called 'type' - it's a drop down list. The field id is employeetype. In a saved search I'd like to be able to have a case statement that compared an employee's 'type' with values in that list without hard coding the text in the case statement eg
Hard coding approach:
case when {employeetype} = 'contractor' then .... end or the non-hardcoded approach which I'd prefer: case when {employeetype} = {employeetype.listitem2} then .... end where the 2nd item in the list is 'contractor' - I've made up the syntax for doing this as it's the part I'm not sure of. ie it compares the type of the current employee with the 2nd entry in the drop down box and if there's a match it executes the 'then' clause of the case statement. That way if the word 'contractor' is ever changed in the list then it will replicate through to my saved search.So my question is how do I generically reference this employee record 'type' list from within a saved search so it gives me the non-hard coded solution?Many thanks!