web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Update SharePoint afte...
Power Automate
Unanswered

Update SharePoint after Comparing 2 lists

(0) ShareShare
ReportReport
Posted on by 28
      UPDATED 12/16/24
            
I have two SharePoint lists.
A with 306 records
B with 950 records

My flow is structured as follows
step 1 - manual start
step 2 - get items from SharePoint A
step 3 - get items from SharePoint B
step 4 – Use Select action to get the unique ID from SharePoint A
step 5 – Use Select action to get the unique ID from SharePoint B

Step 6- Use Initialize Variable action on A ID’s
Step 7- Use Initialize Variable action on B ID’s
step 8 – Use Compose action to Intersect VarA and VarB



All good to this point. I checked the Compose results manually for accuracy.
Now I want to take the Compose results of approx.. 180 matching ID’s and update SharePoint list A for those specific ID’s.
I tried various methods. I am currently at a “apply to each” with the update SharePoint item action  inside. The error message is “ Action 'Update_item' failed: The 'inputs.parameters' of workflow operation 'Update_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'id' is required to be of type 'Integer/int64'. The source type/format 'Array' of the value…….is not convertible to type/format ‘integer/int64’

Okay. So, what is my step to convert an array of 184 ID numbers to something acceptable?               
 
Categories:
I have the same question (0)
  • Chriddle Profile Picture
    8,636 Super User 2026 Season 1 on at
    I'm not sure what you are doing, but since your flow is running "forever", I assume that you use loops for this.
     
    This flow filters B for elements with ids that are also in A (Filter array-A-and-B):
     
     
    Select-A-id creates an array from A's ids:
    From: @{outputs('Compose-A')}
    Map: @item()['id']
     
    Filter array-A-and-B filters B for items with an id that's also in A:
    From: @outputs('Compose-B')
    Filter: @body('Select-A-id') contains @item()['id']
     
    Result:

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard