Send Outlook Mail Message with unknown attachment

Hey guys!

I want to create a process which extracts an excel sheet from SAP and sends it via Outlook to someone.
Therefore I use the “Send Outlook Mail Message” activity which requires a value. Because the excel file doesn’t exist before I start the process it doesn’t recognize the name of the file. That’s why I thought I can type in the value “Directory.GetFiles(“C:\Users\blablabla”)” but it says that it can’t be converted to String. Any idea how I can make it?

Best regards!

@RandomGuy

Please try like below, we need to pass the complete path like “C:\abc\abc.xlsx”

1 Like

I know but the file doesn’t exist yet. What should I type in there then? You did “C:\abc\abc.xlsx” but if the abc.xlsx is not known how can you name the excel file.