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 / Form.Updates.Attachmen...
Power Apps
Unanswered

Form.Updates.Attachments does not work

(0) ShareShare
ReportReport
Posted on by 29

Hello all,

as stated in subject, I am unable to get working Form.Updates.Atachments. I have wanted to have it as "check if any Attachments was changed (added, removed, updated)", but it is not working, does not display anything, it is empty even after change was done.
Other Form.Updates fields work as supposed - if change was done, it is displayed inside Form.Updates.
Anybody has any workaround or reason, why Form.Updates.Attachments does not work?

Thanks in advance,
appreciate any help.

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @VK2 ,

     

    Please use AttachmentsDataCardValue.Attachments instead. The reason may point to complex table structure of the Attachments control. Updates property of a Form just collects all Update property of Data Cards within the Form as a record for adding to data source using SubmitForm or Patch function. I have no idea how you would like to check if value is changed in the form. But using the DataCardValue directly should work because Update property also reference the Control within the Card.

     

    Best regards,

  • Verified answer
    VK2 Profile Picture
    29 on at

    Ok! Thank you very much, at least something worked. My final code for check if Attachment was updated is following:

    before letting user edit the form: ClearCollect(colTestAttachmentsDataCardValueAttachment.Attachments)
    before SubmitForm -  If(!And(IsEmpty(Filter(colTestAttachments, !(ThisRecord in DataCardValueAttachment.Attachments))), IsEmpty(Filter(DataCardValue106.Attachments, !(ThisRecord in colTestAttachments)))), Notify("Attachments were changed!"))

    Maybe somebody will create better and easier way, but thing works for me

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