Export Emails & Attachments using Power Automate

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • This video explains the step-by-step instructions on creating the Power Automate flow to export the emails and attachments within the email to a Onedrive folder. The attachments are exported to a different folder with the email subject name.
    #PowerPlatform, #PowerAutomate, #Outlook, #ExportEmails #SharePointOnline
    When a new email arrives (V3) - Trigger - docs.microsoft...
    Export email (V2) - docs.microsoft...
    Create file (Onedrive) - docs.microsoft...
    Export email attachments (Blog) - spknowledge.co...
    Export emails to Onedrive (Blog) - spknowledge.co...
    Please feel free to comment, like and share with others. If you want me to post any videos on specific topic, please dont hesitate to include in the comments
    Thanks...
    Happy sharing...

Komentáře • 21

  • @NisSubieTechA
    @NisSubieTechA Před 11 měsíci +4

    Very good. The problem is how to get the correct time inside the newly created email file? After automate runs, the email file "sent on" date is in UTC time and not my local time zone. I can convert the UTC time zone to local in the flow, but I do not know how to get corrected time inside the new email. I cannot find the option to use the new time when the email file is created.

  • @deepakpunia2188
    @deepakpunia2188 Před 11 dny

    Nice ❤

  • @alvinmorogo648
    @alvinmorogo648 Před 2 lety +5

    I have the same flow, but if email has an an .eml file attached, it’s not downloaded… do you have a solution for this?

    • @BABA-is8kv
      @BABA-is8kv Před rokem

      Hello, following up to see if you resolved attached msg or eml files not being uploaded.

    • @alvinmorogo648
      @alvinmorogo648 Před rokem

      @@BABA-is8kv no solution yet… looks like it’s not possible..

    • @zacs7971
      @zacs7971 Před rokem

      @@alvinmorogo648 did you ever find a solution to this?

    • @jatinsaini7773
      @jatinsaini7773 Před 10 dny

      Same scenario for me also. @alvinmorogo648 is there any workaround?

  • @agoetzIES
    @agoetzIES Před 11 měsíci

    Thank you. This worked perfectly. Is there a way to automate this to get previous emails that I've already received?

  • @vaishalmohundass5942
    @vaishalmohundass5942 Před rokem +1

    Can I use this with Outlook 2016? Is it possible to export emails as .msg and have the name of the file the subject line. Once exported to the folder sucessfuly, can we delete the email or archive the email in Outlook?

  • @michaelloveless1177
    @michaelloveless1177 Před 2 lety +1

    Very Helpful Video! I'm trying to include the name of the sender and the subject of the email in the file name ending in a .eml I can get it to do just the subject successfully but I am having a hard time adding the name of the sender. Here is what I used for the file name expression: concat(triggerOutputs()?['body/subject'],'.eml')
    How can I edit this to include the senders name/email?
    What do you think?

  • @zacs7971
    @zacs7971 Před rokem +1

    can this open .eml files and extract the attachments in the outlook message?

  • @TimMorley
    @TimMorley Před 2 lety +1

    Could you post how you did the scope to filter non accepted characters out of file names?

    • @sudharsankgoogle
      @sudharsankgoogle  Před 2 lety +1

      I haven't used any logic for changing the unsupported character, it is auto. Inside the scope i have used Create file action with the following values
      Folder Path - /Emails/@{outputs('Create_file')?['body/NameNoExt']}/
      File Name - @{outputs('Get_Attachment_(V2)')?['body/name']}
      File Content - @{outputs('Get_Attachment_(V2)')?['body/contentBytes']}
      I used the filename as ~!@#$%^&()_+}{[];'.,`DF DF.pdf but when it is created it replaced the unsupported chars by _ and the final file name inside the onedrive is _!@#$%^&()_+__[];'.,`DF DF.pdf

    • @TimMorley
      @TimMorley Před 2 lety

      @@sudharsankgoogle hi, after posting I found your website and saw the breakdown of the scope use. Not sure if anything has changed in power automate but the code does not paste in. Gives an error about parentheses.

    • @TimMorley
      @TimMorley Před 2 lety

      Also found after testing that OneDrive now strips illegal characters itself out of file names. 😊

    • @sudharsankgoogle
      @sudharsankgoogle  Před 2 lety +1

      Let me know if there is anything on power automate that you want me to post a video or an article on the same.

    • @Ali-ds5iy
      @Ali-ds5iy Před 2 lety

      @@sudharsankgoogle hi can you please post a video about extracting a table from an html attachment and then parsing it in Excel table in share point?

  • @havanaflays
    @havanaflays Před rokem

    I don't like onedrive or sharepoint. I am looking for a solution to save automatically in a folder of my PC.

    • @sudharsankgoogle
      @sudharsankgoogle  Před rokem

      Have u tried power automate RPA?

    • @havanaflays
      @havanaflays Před rokem

      @@sudharsankgoogle no, I only tried Power Automate Desktop but it doesn't have all the features of Power Automate Cloud. For example, there isn't the action "when a new email arrives"