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

Creating Multiple Lines on an Excel sheet from a Form

Hello!

I am trying to create a flow for our businesses purchasing. Currently, we have a Microsoft Form that the requester fills out and when submitted the item is sent to a line on an Excel sheet that we use for our records. Right now they have to fill out the Form multiples times for one order if there are things in their purchase with different catalog numbers because we want those on one line in the Excel sheet.

Is there a way to have some of the data they input on the form create multiple lines that are added to one Excel sheet?

 

Thanks!

2 ACCEPTED SOLUTIONS

Accepted Solutions
Ricormy
New Member

I think I figured it out.

I ended up creating parallel flows that had conditions where if the section of the form for quantity contained a value it would run a duplicate "add a line to excel" function, but with all the same value except I changed the value it was pulling for the catalog number and quantity.

Still working on it, but I think I'm on the right track now.

View solution in original post

Ricormy
New Member

Here is the solution that I created.

1. After I get the form details I add the first item to the excel file:

Ricormy_0-1626266660552.png

2. For every other item I created a conditions where if the quantity was not equal to 0 the condition would run and add a second row:

Ricormy_1-1626266759180.png

3. You will have to create duplicate conditions for the amount of max items you want in one request. I just chose 20 for now. We have been using it for a while and it has worked well for us.

4. If you want to add notifications or any other functions you can add them under the first item that gets added without a conditions, since you know it will always run:

Ricormy_2-1626266926940.png

 

 

View solution in original post

9 REPLIES 9
Ricormy
New Member

I think I figured it out.

I ended up creating parallel flows that had conditions where if the section of the form for quantity contained a value it would run a duplicate "add a line to excel" function, but with all the same value except I changed the value it was pulling for the catalog number and quantity.

Still working on it, but I think I'm on the right track now.

alrez
Community Support
Community Support

Hi,

 

Thanks for the follow up. I'm glad that it sounds like you were able to get this figured out. Follow up with us and communities can help if you are still having issues. Otherwise post the answer and please mark as resolved. Thanks!

 

Regards,

 

Alex

 

-------

 

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

Would you be able to share how you solved this? I'm having a similar issue. Thank you!

Rosh
New Member

Hi I have the same issue but I am struggling to find a tutorial on the web on how to do this.  Please can you share your solution.

Ricormy
New Member

Here is the solution that I created.

1. After I get the form details I add the first item to the excel file:

Ricormy_0-1626266660552.png

2. For every other item I created a conditions where if the quantity was not equal to 0 the condition would run and add a second row:

Ricormy_1-1626266759180.png

3. You will have to create duplicate conditions for the amount of max items you want in one request. I just chose 20 for now. We have been using it for a while and it has worked well for us.

4. If you want to add notifications or any other functions you can add them under the first item that gets added without a conditions, since you know it will always run:

Ricormy_2-1626266926940.png

 

 

Rosh
New Member

Thank you for the explanation.  When creating the form did you create branches to add another product to enable additional products?  

Yes, there are branches in the form for each item. That also makes it easier to end the form earlier if they do not have that many items. We just put a question at the end of each item asking if there were more items for the order or not. If there was it takes them to the next item to input, if not, it takes them to the end of the form.

fabricio
Frequent Visitor

Could you please share the automate prints. I didnt understand the string condition.

Ricormy
New Member

For the condition of all the other items I just have that if the quantity in the form is equal to or less than function "string(0)" than it is True and nothing happens. That way if there is a quantity more than 0 then the condition is False and it adds an additional row to the excel sheet.

Ricormy_0-1652105911528.png

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,759)