cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Adil365
New Member

Create new Sharepoint folders for each Dataverse row, with folder name = row's name

Hi,

 

I'm trying to build a on-demand/instant flow that when triggered, it will create a new Sharepoint folder for each Dataverse row, with the folder name the same as the row's name. The Dataverse table I'm referencing has 107 records so the flow should create 107 folders. 

 

Here's my basic setup.

1. List Rows - Dataverse - Table referenced with 107 rows

2. Create SharePoint Folder parent folder in proper location

3. Create SharePoint Subfolders based on the "Name" column, using "Apply to each" action

 

Flow:

Adil365_2-1644537444303.png

 

Adil365_1-1644537377050.png

 

 

Issue:

 

Adil365_0-1644536972125.png

 

Message:

The execution of template action 'Apply_to_each_-_List_Rows_Name' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_-_List_Rows')?['pl_name']' is of type 'String'. The result must be a valid array.

 

 

Any help would be appreciated!

 

Thanks,

Adil

 

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @Adil365 :

Please try:

vbofengmsft_0-1644916063994.png

Best Regards,

Bof

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (3,666)