Yes, We can do it .
Considering you are using default Template of REFramework provided by UiPath,
Create a excel file with all fields required for you case consider
Total Number of Business Exceptions 0
Total NUmber of Appliction Excepton 0
Total NUmber of Successfull data 0
Where A Column of Excel file hold description and B Column holds count.
In SetTransactionData WorkFlow,
Case of Success=> (After setting transaction status sucessful) Read the value of cell “B3” > Convert it to int and then increment its count by 1, again use write cell activity with new value in cell “B3”
Case of Business Exception => (After setting transaction status Failed due to business Exception) do the same for cell “B1”.
Case of Application Exception => (After setting transaction status Failed due to Application Exception) Note: Make sure you increment for this case once all retry options are completed.
Please feel free to ask more details if required, Needed i can build you a .xmal file for it.