I'm using a filter to only take systemuser and queue for the lookup in the from field for an email. We have found that there are a LOT of queues available because of the system generated queues (starting with a <). So what I want to do, is not display any queues in the lookup that are inactive. This way the CRM users can just set queues as inactive if they do not want to see them, and I can create a filter so that it finds any active system generated queues.
The issue here is that because it is part of a party list, the javascript function fails. So I am using:
filter = "<filter type='and'>" + "<condition attribute='statecode' operator='eq' value='0' />" + "</filter>"; Xrm.Page.getControl(fieldName).addCustomFilter(filter);
However, this brings up an error, as there is no "statecode" for a systemuser.
Is there any way that I can create part of the filter that will only check against certain entities? would be great if I could do
attribute='queue.statecode'
however this checks each entity in the party list against queue.statecode which of course doesn't exist for other entities.
*This post is locked for comments