Hi @gautmish,
Could you please share a bit more about your SharePoint task list?
I have created a SharePoint task list on my side and the data structure of it as below:
I have made a test on my side and please take a try with the following workaround:
- Add a proper trigger, here I use Flow Button trigger.
- Add a "Get items" action, specify Site Address and List Name (Type Task list name as a custom value).
- Add a "Variables"-> "Initialize variable" action, Name set to AssignedToEmailArray, Type set to Array and Value set to empty.
- Add a "Apply to each" action, input parameter set to value of the "Get items" action. Within "Apply to each" action, add a "Append to array variable" action, Name choose AssignedToEmailArray, Value set to following formula:
first(item()?['AssignedTo'])?['Email']
- Under "Appl yto each" action, add a "Compose" action, Inputs set to following formula:
union(variables('AssignedToEmailArray'),variables('AssignedToEmailArray'))
- Add a "Do Until" action, click "Edit in advanced mode", type the following formula:
@empty(variables('AssignedToEmailArray'))
Within "Do Until" action, add a "Get items 2" action, specify Site Address and List Name (Type Task list name as a custom value).
Add a "Filter array" action, From set to value dynamic content of the "Get items 2" action. Click "Edit in advanced mode", type the following formula:
@equals(first(item()?['AssignedTo'])?['Email'], first(variables('AssignedToEmailArray')))
Add a "Select" action, From set to output of the "Filter array" action. Within Map entry, type 5 enties.
The corresponding value of Task Name read as below:
item()?['Title']
The corresponding value of Start Date read as below:
item()?['StartDate']
The corresponding value of End Date read as below:
item()?['DueDate']
The corresponding value of Task Status read as below:
item()?['Status']
The corresponding value of Description read as below:
item()?['Body']
Note: Please make sure these columns (Title, Start Date, Due Date, Status, Description) that you want to show up within HTML table contain values.
Add a "Create HTMl table" action, From set to output of the "Select" action, Include Headers set to yes. Then add a "Send an email" action, To field set to following formula:
first(variables('AssignedToEmailArray'))
Body field set to output of the "Create HTML table" action, Is HTML field set to Yes.
Add a "Compose 2" action, Inputs set to following formula:
skip(variables('AssignedToEmailArray'),1)
Add a "Set variable" action, Name choose AssignedToEmailArray, Value set to output of the "Compose 2" action.
Image reference:



The flow works successfully as below:

Best regards,
Kris