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

Update/Create Records in CDS when Excel file uploaded to SharePoint Folder

I'm trying to set up a flow that is triggered when an Excel file is created in a SharePoint folder, then runs row by row to either update or create (depending on if the vendor is already in the CDS or not) a vendor record. 

*****

Current config is: 

Trigger - When a file is created (SP);

Action - List rows present in a table (it won't recognize the name of the table in any document);

Action - List records in the CDS;

// Here I have nested "Apply to each" loops:

Apply to each - Value from the "List rows present in a table";  // pull the vendor ID from the first row

Apply to each - Value from the "List records of the CDS";  // loop through the records to see if that vendor ID is there

 

Condition - "List of rows" == "List of records"  // does the vendor ID from rows appear in records?

((Yes)) Action - Update record (CDS);

((No)) Action - Create record (CDS);

*****

The first problem that I'm having is getting the "List rows" action to recognize the name of the table in the Excel file. 

After that, is this the best way to do what I'm trying to do, or is there a better/smarter way? 

 

Thanks! 

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @DaveNull,

 

Please refer to this post, it has a similar requirement, hopes it could help you:

https://powerusers.microsoft.com/t5/Using-Flows/Automatically-update-sharepoint-list-with-excel-data...

 

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-litu-msft
Community Support
Community Support

Hi @DaveNull,

 

Please refer to this post, it has a similar requirement, hopes it could help you:

https://powerusers.microsoft.com/t5/Using-Flows/Automatically-update-sharepoint-list-with-excel-data...

 

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (1,672)