Hello all,
I am trying to attach three files in an email when I am sending it. One is the Current Item in the loop and the others are two static files that go along with the email.
I have tried multiple ways of attaching them:
1. Get Files in Folder and using %CurrentItem% and %Files2%
2. Using the "Select a File" tool near the attachment
3. Using the "Select a Folder" tool near the attachment
All of the options give me the same error: "Attachment Not Found"
Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Attachment not found ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: File name or directory name is not valid.
--- End of inner exception stack trace ---
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)
at Microsoft.Flow.RPA.Desktop.Modules.Outlook.Actions.OutlookActions.InvokeMethod(Object o, String methodName, Object[] methodArgs)
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at Microsoft.Flow.RPA.Desktop.Modules.Outlook.Actions.OutlookActions.SendEmailThroughOutlook(Variant outlookInstance, Variant account, Variant from, Variant to, Variant cc, Variant bcc, Variant subject, Variant body, Variant attachments, Boolean isBodyHtml, Int32 sendEmailFrom)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.Outlook.Actions.SendEmailThroughOutlook.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)