Reputation: 21
I am running one windows task scheduler job to update all user profile properties to disable "Email notifications" using CSOM , however I am not getting any search results for SPS-EmailOptin. This is integer field, if its set to 0 then all notifications are enabled.
When I pass the wild card (*) or other filter (e.g FirstName )then its returning results.
keywordQuery.QueryText = "SPS-EmailOptin:0"; keywordQuery.SourceId = new Guid("B09A7990-05EA-4AF9-81EF-EDFAB16C4E31");
Please let us know this syntax is correct.
Upvotes: 0
Views: 181