How to get Subject of outlook mail

Hi everyone,

I am trying to run a simple process to get the subjects of my top 30 mails in a notepad.

But after it has written the sub of first mail it gets the error which is in the screenshot below

Any suggestions where i am wrong?

1 Like

Hi
You were almost done
Inside the loop use a Attach window activity and choose that notepad application as a element
—then Place this Type into activity inside a ATTACH WINDOW activity
Cheers @diptojyotidutta

I did just as you said but the same error persists.

Is that notepad application opened before typing
If no use a START Process activity with the exe file path notepad as input for filepath property inside the loop as a first activity and then place the attach window activity
Or inside the for each loop use a open application activity and choose that notepad as element
Then use directly the type into activity inside that open application activity

Cheers @diptojyotidutta

Before the get outlook activity i am opening the notepad as shown in the screenshot .

Hi @diptojyotidutta,

Can you check the attached xaml ,and let me know if it worksRead Emails(Inbox and Sent Items_Subject).xaml (7.3 KB)

I followed your process now i am getting the following error.

Here you go with a sample xaml
notepadd.zip (9.6 KB)
Cheers @diptojyotidutta

2 Likes

Hi @diptojyotidutta,

I have read the first 3 email subjects from my outlook ,and it written correctly.Find updated xaml.
Read Emails(Inbox and Sent Items_Subject).xaml (7.2 KB)

image

1 Like

Thanks @RajeshT and @Palaniyappan both the solutions worked!

2 Likes

Cheers @diptojyotidutta