Write data to excel

I have date stored in variable and dictionary. I want to add dictionary keys as header and values and row data in row.

Create empty DataTable and in for each, iterate your dictionary first to create the columns by usind add data columns, the after all columns are there, add values using add data row.

First step - build table activity, then add the headers based on your requirements.
Second step - add “For each activity” below the build table, then give the input array value which you have.
third step - use add data row activity
Fourth step - use write to csv activity