a!pickerFieldUsersAndGroups() error

Certified Associate Developer

when I used a!pickerFieldUsersAndGroups() in filter .It gives error during selecting Group 

Error:--

cannot apply [EQUALS] to field [assignee] when comparing to value [TypedValue[it =5,v=414].

what operator should I used for it

  Discussion posts and replies are publicly visible

Parents Reply
  • This error would always be seen when you first load your form because you're trying to filter on the value of local!pick which would always be empty at first, and the filter value can't just be empty without taking other steps.  In this case you probably want your query to return nothing until a value is given for local!pick, so you could wrap the entire query in an if() statement checking whether local!pick is blank. 

    Additionally, if local!pick is expected to resolve to a username (as that's what you'll be querying), you should probably just use a user picker field, not the "user and group" picker, because if a group is selected, the query will fail (or at least not return anything meaningful).

Children