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 :

Copy Power Apps form to your SharePoint List

WarrenBelz Profile Picture WarrenBelz 153,084 Most Valuable Professional
A challenge is encountered when a SharePoint list is moved and the Integrated Form does not "come with it". This blog shows how to easily and accurately copy these Forms across lists. It is also very useful when a Form in a Canvas app is developed and is suitable for the Integrated app on the relevant SharePoint List.
​​​​​​​
Preparation
  • Open your New App (that you are copying from) in Design Studio. I will refer to this Source below.
  • In a new tab or window (different screen if possible) open the SharePoint list and select Integrate > Power Apps > Customise Forms
  • The screen and form will then generate in Power Apps – I will refer to this as Target
  • If you have a different screen size in the Source to the “standard” Form generated by Power Apps (Integrated App) or you are copying from a Canvas App, in the Target, go to Settings > Display > Size > Custom and set the Screen Width and Height to match the Source item.
  • In the Target, select anything in the left panel and then New Screen from the top menu – you will see an additional screen appear in the left panel.
Update properties
  • Copy any OnStart code from the Source to the Target and select App > Run OnStart in the Target
  • Add any additional Data Sources that are connected to the Source to the Target. This includes other SharePoint Lists and connectors such as Office365Users / Office365Outlook.
  • Connect any Power Automate Flows present on the Source to the Target. If they are in a different environment, you may have to import them to the Default environment as this is where the integrated apps live.
  • If your Form name is not SharePointForm1, rename the Target Form to your Source Form name. This takes care of the current SharePointIntegration settings OnCancel/OnEdit /OnNew/OnSave/OnView.
  • Upload any Media files present in the Source to the Target.
Copying the screen
  • Delete the current Screen (not the blank one) from the Target. This saves potentially renaming duplicate control names when the Source screen is imported.
  • Go to the Source, select the Screen you want to copy over, then select the “three dots” and View Code.

  • Select Copy code at the left bottom of the panel the pops up. It might also be useful to copy this to NotePad or similar.

  • Select the blank Target screen and then Paste.

  • Your new copied screen from the Source should now appear in the left panel
  • Delete the Blank screen from the Target – you no longer need it.
  • Save and Publish then Back to SharePoint
Note that you can just copy the Form (View Code works on it as well) rather than the Screen - if you do this, delete the old Form first (not the Screen) and paste onto the existing Screen (you do not need the blank Screen)


Comments