Dynamic Subject Line Update in Outlook Email – UiPath

I would like to dynamically add additional information to the subject line of an Outlook email at runtime in UiPath. Specifically, during bot execution, it should extract the serial number from the application and automatically append or insert it into the subject line of the Outlook email before sending.

For example:
Original Subject: “Daily Report”
Updated Subject: “Daily Report - Serial No: 789456”

This will help ensure each email is uniquely identified based on the run-specific serial number. is this possible in UiPath

@T_Y_Raju,

You should be able to add this using string concatenation like

strSerialNumber="789456"
strEmailSubject="Daily Report - Serial No: "+strSerialNumber

Now pass this strEmailSubject to your Send email activity

editing of the subject is possible only when we open the the mail manually..but at the run time how can we open the open and add additional subject
in UiPath i think we can read only the content of the mail right

@T_Y_Raju do you mean you are trying to edit the already received email subject?

Yes i want to edit the subject of the already received mail in inbox

what is the purpose of editing the subject after it is received ? Are you sending/forwarding it to someone else using the automation ? . you can loop through the emails and read the subject and then add the dynamic value then send it to someone else.

There is requirement of the client that there will a serial number generated in the application which needs to append the subject of the email then save in another folder on the outlook

yesu raju