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 / 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)
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @LilayLily1 

     

    I would request you to share the required screenshots.

     

    Thanks

  • Matthy79 Profile Picture
    4,188 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,188 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,188 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard