Hello,
I am new to Power Apps and trying to check if its possible to use a single Power Apps form for New, Edit and View functionalities for a SPO list?
I am using a standalone canvas app and do not want to use Customize all forms option under SPO list > Integrate option. My requirement is when I click on New button in SPO list, it should load New Form in canvas app, Edit option should load the form in Edit mode with the item selected and clicking on a list item should load the form in View mode.
As per below article, it looks like we can use the Launch function with ID sent over to load the canvas app when clicking on the items:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Launch-PowerApps-from-SharePoint-List-quot-New-quot-Button/td-p/559758
But I couldn't make it work for all the 3 functionalities (New, Edit & View) yet, instead only make it work for 2 of them. Any better solutions to launch the app from SPO list for all these 3 functionalities?
Logic used at App start and Form Default Mode
//App start
Set(
varID,
Param("ID")
);
//Form Default Mode
If(
!IsBlank(varID),FormMode.Edit,FormMode.New
);
Thanks