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 Apps / How do I Extract attac...
Power Apps
Answered

How do I Extract attachment name into Title

(0) ShareShare
ReportReport
Posted on by 16

Hi ALL, 

 

New to using PowerAPP. I am trying to build a powerapp that allows people to upload documents. I would like to extract the attachment file name as the title. As this would speed up the upload process. 

 

Can anyone explain how I map the attachment card to the title card?

 

The fileds have been created as a Sharepoint list.

I have connect the sharepoint list to Powerapp. 

I now need to extract the files names as the title so people dont have to retype the name.

Screenshot 2023-11-30 094959.png

Thank you!

Categories:
  • WarrenBelz Profile Picture
    156,536 Most Valuable Professional on at

    Hi @kingp ,

    The Attachment Name is (use the actual name)

    First(YourAttachmentControlName.Attachments).Name

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • kingp Profile Picture
    16 on at

    Thank you for your responce. 

    Do I add this formula to the title field?

    Sorry, new to all this!!

    Screenshot 2023-11-30 101640.png

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    yes to the title field and text Property

  • kingp Profile Picture
    16 on at

    I have added it to the title field but I get a red warning. what do you mean by Text Property. 

     

    Sorry for silly questions

    Screenshot 2023-11-30 102545.png

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    mmbr1606_0-1701340278562.png

    where did u put this code? can u send a screenshot where the left part of the screen is visible too

     

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    mmbr1606_1-1701340458686.png

     

    here u have an overview of my setup (tested it with a lable)

     

    choose your control, pick the text property and provide the code as stated above. then it should show the name of the attachment in your title column

     

    be aware that you need to provide the name of the control with the paper clip next to it (see second screenshot) looks like u picked the whole datacard and not the attachment control itself

    mmbr1606_2-1701340659568.png

     

  • kingp Profile Picture
    16 on at

    Hope this helps 

    Screenshot 2023-11-30 103525P02.png

  • Verified answer
    mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    in your case u need to put

     

    First(Datacardvalue13.Attachments).Name

     

    u put the whole datacard. that is not working, because the datacard is a set of controls inside the card

     

  • kingp Profile Picture
    16 on at

    Amazing that worked!!!

     

    Thank you so much!!!!

  • kingp Profile Picture
    16 on at

    If I wanted to do the same for mulitpe Aattachment how would that work?

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard