cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Highlighted
Super User
Super User

Re: Fetching attachment name

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
Highlighted
Super User
Super User

Re: Fetching attachment name

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.

 

Highlighted
Helper V
Helper V

Re: Fetching attachment name

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

Highlighted
Super User
Super User

Re: Fetching attachment name

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,997)