Dear Experts,
I have a bot that helps a user to search in a SharePoint list with the keyword the user has specified.
When the keyword is found the bot then replies with a text-message: "I have found your keyword"
But i would also like the bot to send a text-message to the user when the specified keyword isn't found.
How can i do that?
Greetings, P
Hi @PeKi72,
In your cloud flow you could check if the results are empty. You could either use an expression or a condition.
An expression could be something like below:
if(empty(body('Send_an_HTTP_request_to_SharePoint')['value']), 'Keyword is not found', 'I have found your keyword')
Can you share a screenshot of your flow setup? I can adapt my example to that, if needed.