Sting manipulation from the subject of the mail

Hi team,

I want to retrieve subject from specific email and them implement string manipulation in a way that i get 2 kind of data from the subject,

  1. name of the resource
  2. after how many days the contract is expiring.

The sample subject line is as follows:

Action Required: Employee Chethan kumar k contract is getting expired 15 days from today

from this i want

  1. Chethan kumar k
  2. 15
    to be extracted and stored in a variable
    so how to do it?

@Aishwarya_Bhargava

Use Matches activity

For Employee name

EmployeeStringVariable = Result(0).ToString

For Days

DaysStringVariable = Result(0).ToString

mark as solution if this helps you

Thanks

how can i convert the number so obtained into double or integer

@Aishwarya_Bhargava

cint(result(0).ToString)

Hope this helps

Thanks

1 Like

how do i retrieve “Mohammed Ali” from the string “Notification || Last Working Day in UIPL -FTE - Mohammed Ali”

@Aishwarya_Bhargava

Check as below

([^-]*)$

Mark as solution if this helps

Thanks

thankyou, it worked

1 Like

will this expression also be able to get the value “Madhu Jaikumar || Anil Chacko || Syed Hussaini || Puja Batra || Uday kumar Avula || Saji Pallathu Mathai”
from
“Notification || Entity Transfer from UIPL to UINC (ADNOC) || Last Working Day in UIPL - Madhu Jaikumar || Anil Chacko || Syed Hussaini || Puja Batra || Uday kumar Avula || Saji Pallathu Mathai”

@Aishwarya_Bhargava

Yes it will work

Thanks

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