Hi,
attaching workflow screenshot for reference.
i have a excel with read range, Sheet1-(SOData) with columns - SO no, Status, Tax, Bill Schedule count
If Billing Schedule count(from above) is greater than zero(for eg count= 2) it reads Sheet2(Bill ScheduleData) - having 2 schedule details for respective SO -
SO no(fix col same number from sheet1), Date1, Amt1, Date2, Amt2 —>Schedule 1
SO no(fix col same number from sheet1), Date1, Amt1, Date2, Amt2 —> Schedule 2
here in above date and amt columns pair count is not defined it can have 2 pair of date or n number of pairs, and both these schedules will be for same SO (as Billing Schedule count was 2)
So my query is - i want to add these Date and Amt columns dynamically and there respective data row values dynamically. So as to add all these items (including Billing schedule(Sheet 2) for respective SO Details (Sheet1)) in single Queue
Short overview of what i did till now -
For each to loop sheet 1(SO)
created temp file (Temp data) to add SOdata (and later to append Billing ScheduleData)
getting billing count for respective SO (from sheet 1)
If count > 0 looping for each to sheet 2
verifying if sheet 2 has number of rows as per billing count in sheet 1
if yes - created 2 counters for rows and columns (as column numbers are like Date1, Amt1)
used add new columns - to tempdata
Add new Row - to temp data
bulk adding to queue - Temp data