web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Remove attachments fro...
Power Apps
Unanswered

Remove attachments from powerapps

(0) ShareShare
ReportReport
Posted on by

Hi,I want to remove the attachments in Dataverse from powerapps.

I could delete it by writing the following code in OnRemoveFile of the attachment control of powerapps.

 

Patch(tablenameA,LookUp(TableNameA,ColumnNameA = CaseId),{ColumnNameB:Self})

 

But I don't understand why the attachment control itself, "Self", can empty the Dataverse.

Is this description correct? Is there a better way?

I have the same question (0)
  • Ram Prakash Duraisamy Profile Picture
    5,593 Super User 2025 Season 2 on at

    Hello @nakayama3,

     

    You can try below code in PowerApps

     

    Remove(Notes,LookUp(Notes,Note=ThisItem.Note))

     

     

    rampprakash_0-1638521854011.png

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

     

     

  • Sunidhigambhir1 Profile Picture
    77 on at

    Hello,

    If you want to clear the data in the attachments control, you just need to to delete all the attachments in the attachments control. If you want to clear all the attachments by clicking a button, you just need to use this button to make the attachments control's Default property to blank.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard