Hi @yangyq10
You need not use For Each Excel row. At start befor Get Outlook Mail Messages take a Assign activity and initialize Count = 2
. Count varible is of DataType System.Int32. After that below the Multiple Assign you can use Excel Write Cell to write the values and below the write cell take assign activity and increment the counter by 1 i.e Count = Count + 1
. Below flow will help you complete the workflow
Make sure to pass the sheet name in place of yourSheetName.
Regards