I want to get all the peoples whose PreferredName
contains "Tar".
I have written a search query for this search
/_api/search/query?querytext='*'&selectproperties='PreferredName,OriginalPath,WorkEmail,SipAddress,Department,Path,PictureURL,JobTitle,AccountName,BaseOfficeLocation,'&sourceid='b09a7990-05ea-4af9-81ef-edfab16c4e31'&refinementfilters='substringof("Tar", PreferredName)'
but it shows an error message "Bad Request" and tells refinementFilter is invalid. what is the error in this query??