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!
Solved! Go to Solution.
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.
Here is the solution that I created.
1. After I get the form details I add the first item to the excel file:
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:
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:
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.
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!
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.
Here is the solution that I created.
1. After I get the form details I add the first item to the excel file:
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:
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:
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.
Could you please share the automate prints. I didnt understand the string condition.
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.