RE: Upload Excel file from PowerApps - append rows into existing SharePoint list
Hi @cmndflom,
Do you want to import excel data to existing SP list?
Could you please share a bit more about your scenario?
Even though you have been able to upload files to SharePoint document library, I don't think it is an most efficient way to achieve this using JSON.
I think the most efficient way is to use PowerApps directly.
1). Format the excel data in Table
2). Create connection with the excel file(one drive) and your existing SharePoint list
3). Save the data in excel as a cllection:
ClearCollect(Data1,tablename)
4). Write the excel data to SharePoint list:
ForAll(Data1,Patch(listname,Defaults(listname),
{textfield:textfield,choicefield:{Value:choicefield},datefield:datefield,
numberfield:Value(numberfield),lookupfield:LookUp(Choices(listname.lookupfield),Value=lookupfield)}
)
)
You even don't need to upload the file within PowerApps to SharePoint library.
Hope it could help you at some degree.