Skip to main content
Community site session details

Community site session details

Session Id : rS0vaMcpS9QHn1AMqvL9kY
Power Automate - Building Flows
Unanswered

Array of keywords that have matching data from SharePoint and combine them

Like (0) ShareShare
ReportReport
Posted on 23 Feb 2024 18:59:59 by 34

The scenario:
I have a set of SharePoint pages that we use as wiki pages for our department. These are regular SharePoint pages, not to be confused with SharePoint's wiki pages. Our Page library in SharePoint has a single "line of text" column for keywords to tag to the wiki page. It's just texts separated by a comma and space. 

The goal:
When someone in my department uses trigger words in a group message in Microsoft Teams, it will start the flow. These trigger words imply a question was asked, like "who," "what," "when," and "where." The flow will then scan their message for keywords used in our wiki library. If one or more are found, it will send an adaptive card back to them in Teams with suggested wiki articles based on the keywords found. Thankfully, I've been able to create a flow that does all of these things. I just have one issue.

Problem:
When someone uses more than one keyword that belongs to the same wiki article, the adaptive card suggests the same wiki more than once. I want to figure out how to consolidate them. I have no idea how to piece that together.

I assume I would need to use the array of keywords that were found in the Teams message and somehow compare them against the Get List Items data, then explain that two of the words belong to the same title and link.

I've provided some screenshots to better understand. I hope this helps, and thank you to anyone who can help with this

 

NewName896452_0-1708714874550.png

 

NewName896452_1-1708714910805.png

 

 

  • tkaphingst Profile Picture
    2 on 08 May 2024 at 19:18:15
    Re: Array of keywords that have matching data from SharePoint and combine them

    Has there been any follow up on this?  I see this as a recurring issue so it would be nice to get some thoughts on it.

     

    Regards,Tom

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2