web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Save Office 365 email ...
Power Automate
Answered

Save Office 365 email attachments to OneDrive for Business - customised issues

(0) ShareShare
ReportReport
Posted on by 24

Hi,

This was working yesterday!!

I am having issues with the above. I have a requirement to store attachments coming from various copier/scanners. When I set the above up for docs@domain.com.au, it works fine.

However, I want to change the location stored depending on the alias I am using so that I can automate the storage of multiple document types into different folders.

I therefore created multiple aliases for the above email address e.g forklift@domain.com and others.
I then alter the above flow so I have the To: field as forklift@domain.com and then change the destination for the attachment to a different folder on the OneDrive.
All was working OK yesterday with 2 aliases and files ending up in 2 different folder. Today it stopped working after I started looking at changing the file name of the attachment.

I've deleted all my flows for this account and can get the basic flow to work OK but now, the moment I change the To: field to include the alias the flow never triggers. In OWA, all the emails are being received fine. Does anyone have any idea why the flows aren't trigerring and why it worked yesterday and not today?

Any help would be much appreciated.

Categories:
I have the same question (0)
  • mhlangensiepen Profile Picture
    24 on at

    Additional: It looks like it wasn't actually working. The flow was resolving all the aliases to the actual email account - as I was adding and testing new aliases and flows for the new alias, because it was newer, the incoming email/attachment would go to the next folder I had set up.

    Is there any way round this? It seems very counterproductive for MS to resolve aliases in flows.

  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @mhlangensiepen,

     

    Is your Flow working properly these two days? 

    According to your description, the trigger you are using is When an email arrived of Office 365 Outlook connector.

    Is there any additional condition in the trigger to allow the Flow only to be fired when a special condition met?

    You could delete the trigger then recreate a new one and try again. You could also share the screenshot of your Flow to make us could understand your issue better.

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • mhlangensiepen Profile Picture
    24 on at

    Hi unfortunately the original flows wouldn't work as it looks as if no matter what I do, the alias resolves to the original address of docs@domain.com

    I got it working by using shared email addresses with autoforwarding to docs@domain.com and then filling in the To: field with the shaerd email address. A bit clunky but at least it works. I'll organise things a little better with regard to the shared email addresses so at least they are in sequence. Now I need to delve into the naming of the saved file.

     

    Annotation 2020-08-27 121620.pngAnnotation 2020-08-27 120037.pngAnnotation 2020-08-27 120037 2.png



  • mhlangensiepen Profile Picture
    24 on at

    Last bit of the flow?

     

    I want to drop the existing attachment name and create (forexample) a name of "kcforklift_yyyymmddhhss" where the date/time is that of the attachment creation?

     

    Any help is greatly appreciated.

  • Verified answer
    v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @mhlangensiepen,

     

    You could use the split() function extract the file extension, for example:

    split('TestFile.xlsx','.')[1]

    It will return file extension "xlsx".

     

    Then we could use concat() function to connect the string "kcforklift" and time, for example:

    concat('kcforklift',utcNow('yyyyMMsshhss'),'.','xlsx')

     

    Then append the file name into the Create file action.

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    Best Regards,

     

  • mhlangensiepen Profile Picture
    24 on at

    Many thanks, will have a look.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard