Skip to main content

Notifications

Building Copilot Studio Chatbots in Microsoft T...
Answered

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

Posted on by 1,003

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 29,332 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.

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Getting Started…

Welcome to the Power Platform Community! We appreciate your visit…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 138,030

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,085

Leaderboard

Featured topics