Modify the Outlook email subject dynamically at runtime in UiPath

“I have a requirement to add an additional subject line in the Outlook mail. Specifically, I need to append the Bid Number to the existing email subject at runtime using UiPath.

@T_Y_Raju

Not sure what you mean change..if you have a static subject then you would have added it in the subject or as a variable..now if you need to append something..just use + and add the variable(Bid number) you want to append

cheers

:white_check_mark: If the email is already received in Outlook (Inbox)

we can read the email using UiPath
:right_arrow: But we cannot edit or update an existing email’s subject in Outlook.

Outlook does NOT allow modifying received emails through UiPath or even manually in most cases.

:check_mark: we can read
:check_mark: Extract the subject
:check_mark: Extract body
:cross_mark: But you cannot change the subject of that email in the Inbox.

@T_Y_Raju

if you want to edit already sent emails ..then not only using UiPath but nothing can do it..

while sending or may be you can forward and add the details you need again

cheers

→ Read/prepare email
→ Append Bid Number to subject
→ Send mail

You can use it VBA, best approach.

Subject = mailSubject + " - " + bidNumber

@T_Y_Raju

You can’t do it using UiPath activities but you can try VBA but that’s also again very long way and won’t be much reliable.

May I know the business logic behind this subject modification? May be we can suggest some alternate approch which will satisfy business need and easy to implement.