Save excel file

Save the excel file from the email and open it later. The file name keeps changing. How to specify that only this file should be opened?

Hello User,

You can Save attachments and also if you want to open specific file from that particular folder then you can a IF condition if that file name is present then it will only open that particular file.
Also to save attachment from email follow following steps

  1. Read Emails: Use the appropriate activity (e.g., Get Outlook Mail Messages, Get IMAP Mail Messages, Get POP3 Mail Messages) to retrieve the emails containing attachments.
  2. Loop Through Emails: Use a loop (e.g., For Each activity) to iterate through each email obtained in step 1.
  3. Check for Attachments: Within the loop, use an If activity to check if the email has any attachments. You can use the .Attachments.Count property to determine if attachments exist.
  4. Save Attachments: If the email has attachments, use the Save Attachments activity to save the attachments to a specified folder on your system. Provide the email item as input to this activity.
  5. Optional: Handle Naming Conflict: Optionally, you can handle naming conflicts if multiple emails contain attachments with the same name. You can use custom logic to append a timestamp or a unique identifier to the filename.
    Please let me know if my suggestion resolves your issue.

Thank you :slight_smile:
Happy Automation!!

How I can open this file ? Can I use varible which is my file?

Hello

You can use get files from folder one by one. From that output in which output will be file path that path you can use in read excel file.

Happy Automation!

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