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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extract charactes from...
Power Automate
Unanswered

Extract charactes from attached file name

(0) ShareShare
ReportReport
Posted on by 4

Hello together,

I'm trying to create a flow which get daily email from a shared outlook mailbox at a specific time and save the attached file in a sharepoint. The attached file name is, for example, 23_05_15_XX.xlsx. I would like to extract 23_05 (YY_MM). I have a problem with extracting the five characters of the attached filed name. If necessary, I will provide you with screenshots.

 

Thank you for your help

 

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @LilayLily1 

     

    I would request you to share the required screenshots.

     

    Thanks

  • Matthy79 Profile Picture
    4,180 Super User 2024 Season 1 on at

    Hello,

     

    substring or slice should do the work.

  • LilayLily1 Profile Picture
    4 on at

    Hello, 

    thanks for your answer. I've already tried substring

    substring(triggerBody()?['Attachments']?[0]?['Name'],0,6

    . But I get an error. Power Automate is expecting an array and not an object. 

  • Matthy79 Profile Picture
    4,180 Super User 2024 Season 1 on at

    What is the value of

    triggerBody()?['Attachments']?[0]?['Name']

  • LilayLily1 Profile Picture
    4 on at

    Where can I find it out?

  • Matthy79 Profile Picture
    4,180 Super User 2024 Season 1 on at

    Look into the flow history trigger or create a compose action where you put the dynamic value or formula.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard