cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
UltraMagnus
Helper I
Helper I

Automation flow enhancement - uploading files to SharePoint

Hello Community

 

I have built my first automation where I save email attachment to SharePoint using "When new email arrives (v3)" trigger and "Create file" action. I would like to modify the file name uploaded to SharePoint, currently I used Attachement Name (dynamic content) just to replicate it's name, but going forward I would like to modify it like Report_name<date>. Is it possible to achieve? Secondly I would like to get Teams message if file is not uploaded for any reason, how this can be done?

21 REPLIES 21

@UltraMagnus  yes thats the issue, please use below expression, it should resolve the issue

substring(outputs('Compose'),lastIndexOf(outputs('Compose'),'.'),sub(length(outputs('Compose')),lastIndexOf(outputs('Compose'),'.')))

 

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.
UltraMagnus
Helper I
Helper I

That work perfectly, thank you very much for all help!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,152)