cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SPB21
Level: Power Up

Attachment Control - Prevent deletion of a specific file

Hi,

 

I need to prevent the deletion of a specific attachment from the attachment control.  I'm currently setting the 'OnRemoveFile' action to:

Reset(<Control name>);

Notify("You cannont delete atatchment files").

 

This prevents ALL files from being deleted but i need to limit it to a specified attachment.

 

Thanks

2 REPLIES 2
TopShelf-MSFT
Level 10

Re: Attachment Control - Prevent deletion of a specific file

Thanks for posting in the community @SPB21 . Take a look at the following thread and let me know if it answers your question: 

 

https://powerusers.microsoft.com/t5/General-Discussion/Add-Remove-attachments-Edit-Form-View-Form/td...

 

@TopShelf-MSFT 

lavint
Level: Powered On

Re: Attachment Control - Prevent deletion of a specific file

when you reset control, doesn't it clear all the attachments and return the field to the original no attachment state?

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (6,256)