Skip to main content
Question

Hi all, I am trying to create a bot , which should send email(notification ) if the expected mail in inbox is not received. 1. Notification is sent , but I want to send it only once , not on each iteration . Any suggestions? Regards, Teodora

  • Nov 14, 2022 2:23 PM UTC
  • 8 replies
  • 177 views

Hi all, I am trying to create a bot , which should send email(notification ) if the expected mail in inbox is not received. 1. Notification is sent , but I want to send it only once , not on each iteration . Any suggestions? Regards, Teodora

8 replies

Raul Jaimes
Forum|alt.badge.img
  • Navigator | Tier 3
  • Nov 16, 2022 12:43 AM UTC

@Teodora Dimitrova​ ,

Use the Break action from Loop

Regards

 


  • Navigator | Tier 3
  • Jan 10, 2023 9:09 AM UTC

@tdimitrova  have you got the help you needed?  I can provide some suggestions if you want to screenshare.


  • Author
  • Navigator | Tier 3
  • Jan 10, 2023 12:44 PM UTC

Hi @ShivC ,

 

yes, i did it on this way:

Best Regards, 

Teodora


Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+7
  • Most Valuable Pathfinder
  • Jan 10, 2023 12:55 PM UTC

Hi @tdimitrova ,

 

I believe the bot is sending the email in same address which is already sent.


Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+7
  • Most Valuable Pathfinder
  • Jan 10, 2023 12:57 PM UTC

Hi @tdimitrova ,

 

Could you please change the If conditions with String Includes or Doesn’t Includes


  • Navigator | Tier 3
  • Jan 10, 2023 10:13 PM UTC

Hi @tdimitrova 

 

From what I can understand you want to send an email if the mailbox has not received the expected mail. Also reading your if condition you want to send an email if email date doesnt match the system current date (This logic may have issues in future in case bot isnt run on the day for whatever reason). 

 

If you just want to send the email once, you don't need the last loop. Remove the last loop and just keep the IF condition.

 

Not sure where you are based but happy to get on a call and help if you need it.

 

thanks 

shiv 

 


  • Navigator | Tier 3
  • Jan 10, 2023 10:14 PM UTC

Hi @tdimitrova ,

 

Could you please change the If conditions with String Includes or Doesn’t Includes

Its not that. 


rbkadiyam
Premier Pathfinder | Tier 7
Forum|alt.badge.img+6
  • Premier Pathfinder | Tier 7
  • Jan 12, 2023 7:50 PM UTC

@tdimitrova  use counter variable after checking all unread mails in loop. update counter value if you receive any expected mail… after loop completion you can check if condition if counter is ‘0’ send email…