so i have to automate a process where i have to take information from excel sheet and put it into a website form.
but here’s the problem, the form can only submit 4 companies at once meaning it can only extract the first 4 rows of information in excel, but i have more than 4 rows/companies that i need to submit
how can i automate the process in a way i can submit the next 4 rows after the first 4 rows until excel has an empty row?
i need to be able to submit the next 4 or less than equals to 4 companies after the first 4 companies. how do i create this process
Use the above as input argument to for loop and till the items are completed the loop would run giving 4 or less items each time till the items complete
Hey it’s just to print the 4 rows picked in the current iteration. It was for demo purpose only. You can remove it and add your logic to fill your form.
hii my apologies, because it’s confidential information hence i’m unable to show u how is it like. but allow me to breakdown…
basically in a website for me to submit forms, i can only submit 4 companies at once as its a limit from the website.
however, the excel that i read these companies information from has more than 4 rows,
how do i make the process such that im able to submit the first 4 companies and still followed by the next 4 companies until they finish submitting all companies.
for example if i have in a total of 14 rows, how can it submit 4 at once then the next 4 then the next 4 then the remaining 2?
This explanation is understood and the idea given above is for splitting into those chunks only…when you say not working what is happening?
When you say submit 4 in chunks…how are you doing it? Did you first happen to check the loop and see if 4 items are coming pr not?Did you understand that first? Did you find a solution on how and what to write inside loop?
Please use a for loop as mentioned above that would be straight…
Because ai believe…you are checking all conditions but in the for each row in datatable you are still passing full datatable so it is looping whole…that is where for loop with currentitem.CopyToDatatable will help