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 / Renaming attachments b...
Power Apps
Unanswered

Renaming attachments based on drop down field category

(1) ShareShare
ReportReport
Posted on by 10
Hello, I have been following a video to add attachments and a category drop down to a PowerApps Canvas Form. Its worked fine up until trying to rename the attachment. It is not recognising the Item name of the drop down. I've highlighted part of code not recognised.
 
ClearCollect(colAttachments,Self.Attachments);
UpdateIf(colAttachments,
!(First(Split(DisplayName,"-")).Result in colAttachTags)
{Name:drpAttachTag.Selected.Value & "-" & Name,
DisplayName:drpAttachTag.Selected.Value & "-" & DisplayName
}

 
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at
    You output of Split is Value, not Result (this was changed some time back)
    ClearCollect(
       colAttachments,
       Self.Attachments
    );
    UpdateIf(
       colAttachments,
       !(
          First(
             Split(
                DisplayName,
                "-"
             )
          ).Value in colAttachTags
       ),
       {
          Name: drpAttachTag.Selected.Value & "-" & Name,
          DisplayName: drpAttachTag.Selected.Value & "-" & DisplayName
       }
    )
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee
  • WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at
    Just following up to see if you received the answer you needed, or if you require further assistance.

    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 742

#2
Valantis Profile Picture

Valantis 474

#3
Haque Profile Picture

Haque 358

Last 30 days Overall leaderboard