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 / Get selected Icon Name
Power Apps
Unanswered

Get selected Icon Name

(0) ShareShare
ReportReport
Posted on by 20

Within my app, I have a few categories each category has a Icon, When I select the Icon it bring up a popup to add an attachment. Any attachments that are added have their name amended with today's date. 

 

Is it possible to have each Icon that launches the upload popup names amended with the date in the uploads name?

 

 

UpdateIf(
 Attachs,
 !StartsWith(
 DisplayName,
 DataCardValue31
 ),
 {
 Name: Now() &"_" & Name,
 DisplayName: Now() &"_" & DisplayName
 }
);

 

 

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

    Hi @DigitalHour ,

    Set a Variable value with each icon OnSelect (replace with your icon name)

    UpdateContext({varIcon: "YourIconNameHere"})

    then use that in the file 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.

    Visit my blog Practical Power Apps

     

  • DigitalHour Profile Picture
    20 on at

    @WarrenBelz , Thank you as always, 

                                   When I click on on icon and add the attachment and then select another icon with a different name and add an attachment all the previous attachments name changes.  

     

     

    UpdateIf(
     Attachs,
     !StartsWith(
     DisplayName,
     DataCardValue31
     ),
     {
     Name: varIcon & Now() &"_" & Name,
     DisplayName: varIcon & Now() &"_" & DisplayName
     }
    );
    Capture.JPG
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    @DigitalHour ,

    I thought that was what you are trying to do

  • DigitalHour Profile Picture
    20 on at

    Thanks @WarrenBelz, but I found an alternative way to achieve what i was trying to do. Sorry I was not clear on my question. 

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard