In RE-framework how to find duplicate email and move duplicate email to duplicate folder and non-duplicate to other folder
i am not using orchestrator queue nor local data storage.
i am just using mail message transaction type, is that possible using UiPath ?
Hi @Vikram212
The re-framework is mainly working with Queue items and you process can easily can be handled by normal process to get all mails from the target mail folder then in this message array you can make your filtration as you want and if you insist to use re-framework you have two ways for it
first you need to Setup the RE-Framework for MailMessage Transaction Type by
1- Set the TransactionItem type to MailMessage.
2- Update the Get Transaction Data workflow to fetch one email at a time from the mail server.
3- Update the Process Transaction workflow to handle email processing.
however my recommendation is to use normal process for this business case.
Thanks, i am using TransactionItem type to MailMessage and then i need to identify duplicate email and send 1 duplicate email to duplicate folder and valid to valid folder. so not getting what logic can be implemented further i cant save email details in local nor in database so its tricky
i am not using queue since duplicate emails need to be handled and need to send to different folder and queue reference has a limit of 127 characters only (so unique is only combination of subject and sender but length of bot entities goes beyond 300)
Hi @Vikram212,
I think to solve this problem statement, you should use a blank process and build the logic from start. Or ditch state(get transaction state) in Re-framework and include the logic in process state itself.
In my view, logic can be as below:
- get mail messages.
- run a loop for those mail messages.
- pick 1st mail message
- run an inner loop that will start from next mail message in line.
- compare 1st mail message picked in outer loop with all messages from inner loop one by one.
- if match found, move to another folder
Hope this helps.
Regards
Sonali
so it actually doesnt sound feasible solution to a scalable problem
there are 1000 mails to read, so using 2 for-loops will slower down the execution and secondly if i read in batch of 50 mails and if duplicate mail is in another batch then it wont identify duplicate.
Hi @Vikram212,
Can you check below thread and see if any solution works for you?
Below one have worked for someone in the past:
Hope this helps.
Regards
Sonali