I'm building a powerapp where a person can add files on a sharepoint record. It's a very complex powerapp that does several things, but I need this one screen to allow a user to add attachments and press a button to add the file to their sharepoint record and allow them to add more files at a later date.
The way it is now, is that it'll work for the very first time the person goes to add files after the record is made, then after a successful patch, it'll say "no items to display" even though there are items to display. I can verify this by going to the SharePoint record and it'll have the uploaded files. I believe what may be going on is that the patch function is unselecting the item, but I can't figure out to make it stop doing this.
On select property of the button
Patch(
'sharepointlist',
LookUp('sharepointtable',MilestoneID=varPropAttempt.MilestoneID),
{
Attachments: DataCardValue75_2
},
Updated_Proposal_Attachments_2.Updates
);
{
'Start date': DatePicker1_4.SelectedDate + Time(Value(HourValue1_9.Selected.Value), Value(MinuteValue1_9.Selected.Value), 0),
Location: TextInput2_4.Text
}
);
The edit form item field is
LookUp('sharepointlist',MilestoneID=varPropAttempt.MilestoneID)
It should go to something like 244 then go to sharepointlist, go to column with "MilestoneID" and then show all files for the record.
I tried to do Set(IDSelected,varPropAttempt.Attachments); on my button as the first step, and then have the "item" field of the edit form to "(IDSelected), but it'll say "no items to display" after the user clicks the button.
Any times/advice?
The root question is : I have a button that patches an "edit" gallery, I need to make it so that the items are listed after the person pressed the button.