Skip to main content
Question

Did any of you have a problem with loop through email when received date is after>

  • January 10, 2022
  • 9 replies
  • 474 views

Hello,

I am building a bot to download all email from a mailbox(outlook mailbox, IMAP connection). I am using loop through all email and at "When received date is before" I put a date variable with todays date in it, but the bot isn't download any email.

If I delete the variable from "When received date is before" the bot download all the emails.

 

Thank you,

Raul

9 replies

  • Author
  • Cadet | Tier 2
  • 8 replies
  • January 10, 2022

Hello @ChanduMohammad S​ ,

The date is 2022-01-10, (YYYY-MM-DD format).


Forum|alt.badge.img+19
  • Most Valuable Pathfinder
  • 2694 replies
  • January 10, 2022

Hi @Raul Patcas​ ,

 

Can you check the Date value by adding a Message box?


  • Author
  • Cadet | Tier 2
  • 8 replies
  • January 10, 2022

And if I put the same variable in "When received date is on or after" everything works fine.


Forum|alt.badge.img+19
  • Most Valuable Pathfinder
  • 2694 replies
  • January 10, 2022

HI @Raul Patcas​ ,

 

Please go through below synopsis of each option,

 

  1. Optional: In the When received date is on or after list, select an option to retrieve specific emails on or after a certain date.
  2. Optional: In the When received date is on or before list, select an option to retrieve specific emails on or before a certain date.

 

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


  • Cadet | Tier 2
  • 1 reply
  • January 31, 2022

I have the same problem, could you solve it?


  • Author
  • Cadet | Tier 2
  • 8 replies
  • January 31, 2022

Hello @Carlos Torres​ ,

 

I manage to avoid it by changing the connection server (from EWS server to Email server).

 

Try that and let me know if it works.


Forum|alt.badge.img+4
  • Navigator | Tier 3
  • 11 replies
  • February 11, 2022

Hello @Carlos Torres​ 

 

I have done the below steps for Outlook

 

  1. Date time to String command-> Convert the system date to string variable with custom format yyyy/MM/dd or dd/MM/yyyy
  2. Date Time Assign command -> Convert the Step 1 string variable as date with the custom format used in Step 1
  3. In loop, use the step 2 date variable in "when to receive option"

 

Earlier I have faced the same issue while using the system date directly, but after this conversion, its working fine for me.

 


Forum|alt.badge.img+12

Hello @Raul Patcas​ 

 

Reported issue is fixed as part of A360.25 for Email Server.

Reference: https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/release-notes/release-automation-360-v25.html/p>

Search using keyword: 00920617

 

Please feel free to open Support ticket in case if the issue still persists.

 

Regards,

Vinod


Forum|alt.badge.img
  • Cadet | Tier 2
  • 1 reply
  • June 22, 2023

I need to use Previous Month First Date and Last Date while reading the email. I can get the dates either from Excel or VB Script but both will return values in string variable.

I converted the string to datetime variable. After that system is not reading the email.

 

If anyone has does this, please help


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings