From 23277224f9fcf3b01efdeef65f0a968ddd1347d9 Mon Sep 17 00:00:00 2001 From: Gunjan Datta Date: Wed, 20 Aug 2025 20:06:36 -0400 Subject: [PATCH] Fixed post query to use " instead of '. --- src/reports/searchProp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reports/searchProp.ts b/src/reports/searchProp.ts index c45947e..71ba224 100644 --- a/src/reports/searchProp.ts +++ b/src/reports/searchProp.ts @@ -187,7 +187,7 @@ export class SearchProp { // Set the query let query: Types.Microsoft.Office.Server.Search.REST.SearchRequest = { - Querytext: `contentclass=sts_site AND ${searchProp}${searchEmpty ? "<>'*'" : ":'" + searchValue + "'"}`, + Querytext: `contentclass=sts_site AND ${searchProp}${searchEmpty ? "<>\"*\"" : ":\"" + searchValue + "\""}`, RowLimit: 500, SelectProperties: { results: CSVFields.concat([searchProp])