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 / Initialize Variable Ap...
Power Automate
Answered

Initialize Variable Apply to Each

(0) ShareShare
ReportReport
Posted on by 50

Hi,

 

I'm currently building a flow to create a document library and set different views based on the folders created. 

 

I have a part of the flow built that can create the view but it is hard coded and I am looking for a way to use dynamic content to go down a list from Excel or a SharePoint item and create a view for each one. 

 

This is the current part of the flow I have built. It is creating a view called 'Electrical' which shows items with value 'Electrical' in the column 'Discipline. The issue I am having is that the dynamic content would have to go within the Initialize Variable and I am obviously not able to out them within an Apply to Each. 

SamBrent_0-1661867879423.png

 

This is the site I have referenced to build this; Create SharePoint List View using Power Automate (c-sharpcorner.com)

 

Any help would be appreciated.

 

 

Categories:
I have the same question (0)
  • Verified answer
    VictorIvanidze Profile Picture
    13,081 on at

    Create an array that covers all disciplines:

    ["electrical","mechanical"...,"chemical"]

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 470

#2
Haque Profile Picture

Haque 416

#3
David_MA Profile Picture

David_MA 344 Super User 2026 Season 1

Last 30 days Overall leaderboard