cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vish_p
Helper V
Helper V

Fetching attachment name

attachattach

 

My user will be uploading attachment in the above shown "Attachments" field and i need give some logic that will take the name of that attachment and show in "PO Number" column as shown above (all before submitting form)

 

Any way out ?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @vish_p

 

I am not sure I understand your full requirement, but if you would to get a handle on the name of the attachement that is currently selected in the Form, you can check what the Card Value control name is, and then use the following formula to extract the name.

First(DataCardValue2.Attachments).Name

 

Let me know if you don't come right.

 

twitter: @dawidvh

youTube: https://www.youtube.com/channel/UCIMe_ErQZP5chbI9UyW0xLw

>>If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions.<<

View solution in original post

3 REPLIES 3
DavesTechTips
Super User
Super User

Hi there.

 

You can use the following to get the displayname

First(First(Filter('AttachmentsList',ID = ThisID)).'{Attachments}').DisplayName

Let me know if you don't come right.

 

i guess this is taking the name of attachment which is already there in that list item/after uploading attachment ,but my requirement is to fetch the name of attachment that user want to upload and selected that attachment in the "attachments" field but not yet uploaded

@DavesTechTips

Hi @vish_p

 

I am not sure I understand your full requirement, but if you would to get a handle on the name of the attachement that is currently selected in the Form, you can check what the Card Value control name is, and then use the following formula to extract the name.

First(DataCardValue2.Attachments).Name

 

Let me know if you don't come right.

 

twitter: @dawidvh

youTube: https://www.youtube.com/channel/UCIMe_ErQZP5chbI9UyW0xLw

>>If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions.<<

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,322)