Hide adaptive card when search result is empty

55 views Asked by At

I created an adaptive card and I would like to only show it when there is data to show. So in my card I do

sp.web.lists.getByTitle(listName).items
.filter("(Status ne 'Completed')")
.orderBy("Created", true)();

So when the listitems count > 0 I would like to show the card if possible.

0

There are 0 answers