Skip to main content
Cadet | Tier 2
September 22, 2022
Question

hello, how can I get the subject of the incoming mail?

  • September 22, 2022
  • 2 replies
  • 139 views

hello, how can I get the subject of the incoming mail?

    2 replies

    Ashwin A.K
    Navigator | Tier 3
    September 22, 2022

    Hi @eks rpa​ ,

     

    When you Loop through mails in mailbox using the Loop Action, you have the option of either assigning a Dictionary to the Loop Action or you can directly assign the required keys to select variables.

     

    If you are comfortable using the Dictionary, then use this to retrieve the Email Subject:

    $dictMails{emailSubject}$

     

    If you want to learn more about you can either go through the documentation here or read about it on my dictionaries in general here.

     

    Kind Regards,

    Ashwin A.K

    Blogs at TheCodingTheory - https://www.thecodingtheory.com
    SakthiVel
    Navigator | Tier 3
    Navigator | Tier 3
    September 22, 2022

    Here is the documents link

     

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

     

    dictionary keys:

    • emailSubject
    • emailFrom
    • emailTo
    • emailCc
    • emailBcc
    • emailMessage
    • emailReceivedTime
    • emailReceivedDate
    • emailSentTime
    • emailSentDate

     

    Lets Connect - https://www.linkedin.com/in/sakthivel-palanisamy-08152833/