Skip to main content

Notifications

Copilot Studio - Building Copilot Studio Chatbo...
Answered

Send a message to the user when a keyword that is specified by the user isn't found in a sharepoint list.

(0) ShareShare
ReportReport
Posted on by 1,017

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

 

 

  • Verified answer
    Expiscornovus Profile Picture
    Expiscornovus 31,089 on at
    Re: Send a message to the user when a keyword that is specified by the user isn't found in a sharepoint list.

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard

Featured topics