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 / Referencing an Attachm...
Power Apps
Unanswered

Referencing an Attachment with UpdateIf function

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi @ALL,

 

it is driving me crazy,I have a form with several datacards and on of them is the attachment data card of my sharepoint list. It is enabled that someone can attach a file to this field.

 

Below is my "Save" Button Code for Updating the data cards under condition. I also need to update the attachment column but it is not working, it always shows me an error that the name is invalid. But 'Attachments' is the name of data card made by PowerApps and right now I am not able to reference to it

If(Value5.Text<>"Closed",

UpdateIf(Requests,ID=EditRecord.ID,{Status:Value5.Text,
SupplierMail:_SupplierMailDropdown.SelectedText.SupplierMail,
SupplierContactPerson:_CCMailDropdown.SelectedText.CCMail,
AssignedTo:assign,
DateClosed:"--",
BusinessServiceTypes:_DataCardValue1.Text,
Priority:Value8.Text,
Comment:Value3.Text}),

 UpdateIf(Requests,ID=EditRecord.ID,{Status:Value5.Text,
'Attachments':_DataCardValue2.Attachments,
SupplierMail:_SupplierMailDropdown.SelectedText.SupplierMail,
SupplierContactPerson:_CCMailDropdown.SelectedText.CCMail,
AssignedTo:assign,
DateClosed:_DatumHeute.Text,
BusinessServiceTypes:_DataCardValue1.Text,
Priority:Value8.Text,
Comment:Value3.Text}));

Navigate(DashboardPage,ScreenTransition.Fade)

 I would appreciate it if you could help me. This step is really crucial for the employees to save other attachments.

 

BR

Pitfrog

Categories:
I have the same question (0)
  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    There is a limitation with the Attachment control where changes can only be saved using the SubmitForm() function. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Jeff_Thorpe 

     

    So, as far as I understand you, I need to split my Form into two forms, one with my conditions and one solely for the attachment control? 

     

    Is there any proposal here or this function? 

     

    BR
    Pitfrog

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard