cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
b-oneal_12
Frequent Visitor

Complex MS Form to Add Row in Excel to Multiple Tables

Hello All,

 

I have a very specific use case that I am trying to solve and I do not know if this is possible. I want to create a flow that when a form response is submitted, depending on the date selected in the form, it adds to a row to a specific worksheet table depending on that date.

 

For example: If someone selected January 2021 in the MS form, it would add a row to only the table that is for the month of January, each month would have a separate worksheet in the excel document with a separate table as well.

 

I am trying to make it so that the flow can add to the specific months and I can make this flow more self-sustaining on a yearly basis without having to create a copied excel worksheet every month.

 

I currently have a simple flow set up that adds a row to an excel sheet, but we would still have to duplicate the sheet every month and clear out the old data.

 

If anyone could assist with this, that would be wonderful.

 

Thank you and let me know if you have any questions.

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User
Super User

Hi @b-oneal_12 

 

Please see below where I dynamically pass the table name. In your case the month. Then insert the value in JSON format.

 

"ColumnName":"value"

 

image.png



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

4 REPLIES 4
abm
Super User
Super User

Hi @b-oneal_12 

 

Please have a look at this blog Create and fill an Excel file dynamically with Power Automate » Benedikt's Power Platform Blog (bene...

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
abm
Super User
Super User

Hi @b-oneal_12 

 

Please see below where I dynamically pass the table name. In your case the month. Then insert the value in JSON format.

 

"ColumnName":"value"

 

image.png



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
b-oneal_12
Frequent Visitor

Thank you for the reply! I am trying to figure this out - could you show more as to what the flow would look like? I can either add a calendar picker into the MS Form or a have dropdown options in the form for all months. This is the simple flow that I have now: 

 

boneal_12_0-1623860167636.png

 

Any help would be amazing so that I can complete this project.

 

b-oneal_12
Frequent Visitor

I have attempted what was listed and was able to recreate it and get it to work. Thank you!

 

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,456)