4

I'm using a standard content search webpart. In my query I have a query string filter on a field called HRPortalRole. The column that links to the HRPortalRole managed property is a choice column. The querystring filter in the query looks like this.

HRPortalRole:{QueryString.role}

If I specify only one value in the query string it is working correct. (sample below)

?role=employee

What I want to do is specify more than one role, so that I can show content of both roles. For example something like this

?role=employee&role=manager

or something like this

?role=employee;manager

Is this somehow possible?

  • did you ever find an answer to this? – vol7ron Nov 30 '16 at 21:04
  • The most I found was something similar to an expansion operator, using a pipe: {|HRPortalRole:{QueryString.role}} but I haven't figured out how to format the querystring, I would think it would be ?role=foo&role=bar, but no dice. itunity.com/article/sharepoint-query-variables-295 – vol7ron Nov 30 '16 at 22:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.