Solved

Loop through emails and get subject text

  • 23 August 2023
  • 2 replies
  • 53 views

Badge +4

Hi,

I want to get certain text from the subject of some emails in my inbox. I am trying to create a loop that iterates over each email and gets the innerHTML property, but so far I can only get the text from the first one multiple times. How can I iterate throught the emails in my inbox and get the text in the subject?

Thanks

icon

Best answer by Tamil Arasu10 24 August 2023, 09:39

View original

2 replies

Userlevel 4
Badge +9

Hi @jsegura 2409 ,

Following Steps:

  • Use the Email Connect Action
  • Loop the mailbox (inbox)
  • Assign the variable into Dictionary 

Please refer the below links,

 

The email properties are stored in a dictionary variable within the following dictionary key

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/commands/cloud-email-action-loop.html

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/commands/cloud-using-email-properties.html

 

emailSubject String Retrieves the value of the email subject
Badge +4

Thanks,

And how can I read the content of the email and store it in a variable?

Reply