Microsoft Office 365 Scope on Send Mail

Hi,
i invoke send email workflow
having 3 in_EmailAttachment string in my argument
but not everytime it will have 3 attachment variable
and the bot show file does not exist and did not send email at all
using 2.7.1 with studio version 22.10.4
if all 3 has attachment it works fine but not null for one
how to solve this?



When Attachments Collection is a String Enumerable:
grafik

  • {in_Var1, in_Var2,in_Var3}.Where(Function (x) Not String.IsNullOrEmpty(x))

We assume correct file paths are passed, when an in Argument is not null/empty

1 Like

and attachments i leave it empty


Yes, we would use the Attachments Collections only

it didn’t work what did i do wrong? as it say object ref not set

Debug and trace the arguments
Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum

also you can prototype within the immediate panel

Also try: {in_Var1, in_Var2,in_Var3}.Where(Function (x) Not String.IsNullOrEmpty(x))

1 Like

Thank you so much
it works now

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.