How are you guys replying to a specific email, that the email chain would be easily visible then later user opens to his GMail?
Don’t wanna do it via UI, but also don’t wanna create new email by building it like Subject = "RE: " + previous Subject as it would be count as a total different email and wont be visible in email chain.
Sorry but couldn’t find proper activity to do so ;(
At present, we do not have inbuilt UiPath activities that allow us to reply to a specific email on Gmail. The existing ‘Reply All’ functionality is limited to specific emails within our UiPath integration services only. Furthermore, our Automation Suite or standalone UiPath does not currently offer integration solutions for this requirement.
However, I have developed an App Script as a workaround. This script is designed to reply to a specific email based on the email subject. It identifies the most recent email thread and sends a ‘Reply All’ to that thread. I have attached sample email as well.
function replayTo_SpecificEmail() {
// Define the subject you are looking for. This will fetch the email details based on the Subject you are passing.
var subject = “Hello from Reply to Specifi Email Latest”;
// Search for threads with the specific subject
var threads = GmailApp.search(‘subject:’ + subject);
Logger.log("Number of threads: " + threads.length);
// Initialize a counter for the messages
var messageCount = 0;
// Loop through each thread
for (var i = 0; i < threads.length; i++) {
// Add the number of messages in the current thread to the counter
messageCount += threads[i].getMessageCount();
}
// Log the number of messages
Logger.log("Number of messages: " + messageCount);
var lastMesssage = messageCount-1;
Logger.log(“Last Message Count :”+lastMesssage)
// Loop through each thread
for (var i = 0; i < threads.length; i++) {
// Get the first message in the thread
var message = threads[i].getMessages()[lastMesssage];
// Reply to the message
message.replyAll(“Email Body”);
}