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 / Add content to SharePo...
Power Automate
Unanswered

Add content to SharePoint list item from two different arrays

(0) ShareShare
ReportReport
Posted on by 248

Hi,

 

I'm attempting to add content to SharePoint list items from two different arrays, however when I select from each array Flow nests the apply each twice and I get dupes of everything.  Anyone know how to add data from two different arrays and then update an array of list items without creating dupes?

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @cbernier12 

     

    The only option in this case is declare a variable and select the type accordingly. Then iterate the second loop outside the other loop (Before the create item step) and set the value. Later you can use the variable under the create item.

     

    Note: I don't know your exact logic is so if you thinking to create a single item using both arrays then iterate both arrays as separate get all values and assign to correct variables. So in this case you may needed more than one variable for creating the item.

     

    Thanks

  • cbernier12 Profile Picture
    248 on at

    Thanks, I did try the variable route, however it always nests the variable in a apply each and then won't save because nesting variables isn't supported.  Any way to stop the variable from nesting automatically?

  • cbernier12 Profile Picture
    248 on at
    This is the error I receive: The inputs of workflow run action 'Set_variable' of type 'SetVariable' are not valid. Self reference is not supported when updating the value of variable 'varDisplayName'.
  • sudharsan1985 Profile Picture
    1,325 on at

    Hi @cbernier12 

    Try to provide some screenshots, which would expedite the process.

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @cbernier12 

     

    If you getting self referencing error means you have the following scenario.

     

    You have variable A = "Test A" and another variable B = "Test B" then you want to combine both variable to "Test A Test B" and store to variable A. That means variable A = Variable A + Variable B. But in Power Automate this is not possible. What you need to do is declare another variable C and do the following

     

    Variable C = Variable A + Variable B

     

    Hope it make sense.

     

    Thanks

     

     

     

  • cbernier12 Profile Picture
    248 on at

    How would I do Variable C = Variable A + Variable B on two separate arrays without the action turning into apply each?

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