Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Suggested answer

Lookup one value in list against another

(0) ShareShare
ReportReport
Posted on by 754
look at Hi Community
 
I have a situation where I'm trying to create a flow that checks through one list of items against another list.
 
The first list of data is collected from running a query against a dataset (Power BI) and the second list is a SP list. I want it then to add the item from the Power BI Dataset to the SP list if it doesn’t already exist. So really need to look at the items in the Power Bi data and check it against those in the SP list.
 
What is the best way of creating a flow that meets this criteria.
 
  • Kmayes Profile Picture
    754 on at
    Lookup one value in list against another
    @DJ_Jamba Im not sure if im being daft or done something wrong but there seems to be alot of items which makes me think it has collected all items that are on the SP list  as I would only expect a few items
  • Suggested answer
    DJ_Jamba Profile Picture
    2,815 Super User 2025 Season 1 on at
    Lookup one value in list against another
    OK, so you already have the data from Power BI in one action (Parse JSON) and the data from SharePoint in another action (Get items).

    1. After the Get Items action, add a Select action, switch to Map text input mode and configure as follows:
     

     
    From:
    
    @{outputs('Get_items')?['body/value']}
    
    Map:
    
    @item()?['Ticket ID']
     
     
    2. Add a Filter array action and configure as follows:
     
     
    From:
    
    @body('Parse_JSON')
    
    Filter (edit in advanced mode):
    
    @not(contains(body('Select_SharePoint_Ticket_Id_only'), item()?['Ticket ID']))


    This will result in all Power BI rows where the Ticket ID does not exist in your SharePoint list
  • Kmayes Profile Picture
    754 on at
    Lookup one value in list against another
    @DJ_Jamba There is a Ticket ID on both sides
  • DJ_Jamba Profile Picture
    2,815 Super User 2025 Season 1 on at
    Lookup one value in list against another
    What is the common id, key or foreign key on both sets of data? 

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,898 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow