Skip to main content
Solved

How to read emails with attachment only?

  • February 28, 2025
  • 4 replies
  • 35 views

Forum|alt.badge.img+5

Hi, good day! Why does the taskbot I created also read those email without attachments using below actions? In my if condition only emails with attachment should be sent an acknowledgement receipt but when I run it, it also replies those emails without attachment. Hope can someone help me on this. Thanks in advance!

 

 

Best answer by Marc Mueller

Hi ​@Shusha321,

which package do you use for this? (I guess the standard “Email” package)

Did you checked that on every iteration the number variable is correct?

(Use Message box between L14 and L15 with this: $Email_Attachments.Number:toString$)

 

Tip: You can also directly use the dict value without converting it with extra step on L14 in you If statement. 👇👀

$EmailDictionary{emailNoOfAttachments}.String:toNumber$

 

Cheers

Marc

View original
Did this topic help answer your question?
This topic has been closed for comments

4 replies

Marc Mueller
Pathfinder Advocate | Tier 6
Forum|alt.badge.img+13
  • Pathfinder Advocate | Tier 6
  • 141 replies
  • Answer
  • February 28, 2025

Hi ​@Shusha321,

which package do you use for this? (I guess the standard “Email” package)

Did you checked that on every iteration the number variable is correct?

(Use Message box between L14 and L15 with this: $Email_Attachments.Number:toString$)

 

Tip: You can also directly use the dict value without converting it with extra step on L14 in you If statement. 👇👀

$EmailDictionary{emailNoOfAttachments}.String:toNumber$

 

Cheers

Marc


Marc Mueller
Pathfinder Advocate | Tier 6
Forum|alt.badge.img+13
  • Pathfinder Advocate | Tier 6
  • 141 replies
  • February 28, 2025

@Shusha321  Ohhh hahaha forget what I wrote… 🤣

 

I see you use the string in If statement. 🙈

 

Have you checked with message box ref to EmailSubject and your Email_Attachments in the loop?

 

Cheers

Marc


Forum|alt.badge.img+5
  • Author
  • Navigator | Tier 3
  • 20 replies
  • February 28, 2025

@Marc 1985 I see! My missing action is to convert it from string to number the $Email_Attachments$. Thanks again for your great help! :)

 


Marc Mueller
Pathfinder Advocate | Tier 6
Forum|alt.badge.img+13
  • Pathfinder Advocate | Tier 6
  • 141 replies
  • February 28, 2025

@Shusha321 

Woohoo… 🎉😊

Now you are ready for the next step. 🚀💪 


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