Reading the specific content from the email Subject

Hi, canyou guide me how to read the specific content for the email subject from the gmail. Like my Iā€™d is changing evrytime and I want to extract that Id only from the subject.
Ex. 10001 Candidate Profile so like this is a subject and I want to extract only 10001 which is dynamically changing.
@Palaniyappan @RobertD @Pablito

1 Like

Hey @balkishan,

If 10001 Candiate Profile is the email subject and only id is gonna to change every time then you can perform a split on space on the email subject and get the value from the first index.

for ex:

mailsubject.split({" "},stringsplitoptions.none)(0).toString()

1 Like

Hey @balkishan,

Please use the code below in that case:

mailSubject.split({" ā€œ},stringsplitoptions.none)(1).split({ā€ "},stringsplitoptions.none)(0).ToString

2 Likes

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