How to edit outlook mail body

Hello ,

Can anyone pls help me…
I want to remove [If applicable] in outlook body message
i can get output in write line but it is happening in outlook body

Main(Autosaved).xaml (52.2 KB)

hey

try with this
yourStringVariable.Replace(“[If Applicable]”, string.Empty)\

please check that your are passing the correct variable

regards!

Hi @tkiran

Main.xaml (5.5 KB)

Please find the sample

also attaching expression here …make sure you use wont miss any word while replacing

Text.Replace("[If Applicable]", "")

Thanks

Can you pls help me how to do it in

Why are you using the outlook interface, we have an activity called send outlook mail message, just pass the proper variables and values in the activity, not hard to use

But if you want to do it, just use a get text and read the text from the mail, the use the replace method to remove the string you need, and finally use a type into activity with empty field property activated

Regards

Try this @tkiran

Thanks

@tkiran May I know what actions you are trying to perform here

Are you reading the body of the email that you receive ?
If this is the case, then you can use an activity called Get Outlook Mail Message from where you can read the unread emails and also the details related to it (Body, header etc). Once you read the email then you can replace or ignore [if applicable]

Are you trying to send an email ?
If this is the case, then you can use send SMTP mail message where in the UiPath code you can ignore [if applicable] when sending an email

Hi Fernando

i have tried Typeinto activity but i am getting error

I am getting error as: Type Into ‘Hello!IMPORTANT: THIS’: Special keys syntax error. Encountered invalid special key action at text position: 602.

Main(Autosaved).xaml (80.3 KB)

Hi Usha,
Thank you for your reply

In Encompass application if i click on email button it will open outlook email template and we to need just edit based on condition and then Add To and CC mail IDs and click on send this is the scenario…
image

image

Click on the Yes and an email template will now open

Condition is… if 2nd Loan amount line has dollar Amount then we need remove “If applicable”

Can you pls help me how to replace “if applicable” when condition True
i have tried with get text and using ismatches i can able to get the body text but i am unable to do Replace if applicable string in that body email…attached my Xaml
Main(Autosaved).xaml (80.3 KB)

@tkiran Try the below expression to replace the [if applicable]

Hi Fernando,

I have tried with send outlook message now problem is resolved…

Thank you so much

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.