Skip to content

Commit

Permalink
handle empty values
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyziggy committed Mar 13, 2024
1 parent 8859ce5 commit d0b995c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FunctionApp/SharePoint/ListData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public async Task<IActionResult> GetSignedInCompanies(
{
new("select", "id"),
new("expand", "fields(select=Company)"),
new("filter", $"fields/Site eq '{siteName}' and fields/CurrentStatus eq 'In'"),
new("filter", $"fields/Site eq '{siteName}' and fields/CurrentStatus eq 'In' and fields/Company ne null"),
new("orderby", "fields/Company")
});

Expand All @@ -108,7 +108,7 @@ public async Task<IActionResult> GetSignedInEmployees(
new("select", "id"),
new("expand", "fields(select=Title)"),
new("filter",
$"fields/Site eq '{siteName}' and fields/Company eq '{company}' and fields/CurrentStatus eq 'In'"),
$"fields/Site eq '{siteName}' and fields/Company eq '{company}' and fields/CurrentStatus eq 'In' and fields/Title ne null"),
new("orderby", "fields/Title")
});

Expand Down

0 comments on commit d0b995c

Please sign in to comment.