Skip to main content

Export and Import SharePoint List Custom Forms App across tenants


PowerApps Overview
PowerApps is part of Microsoft’s Power Platform technologies offerings which include MS Flow and PowerBI (desktop and web). It comes up a lot of user-friendly features, which helps even to non-developer to build powerful forms for different layout with various data sources.


It is also built to customize SharePoint list forms(linked directly from the list) So that Site user who has access on the list can edit the list forms according to their requirements. If you customize the form for a list and want to replicate into another list/Site, PowerApps doesn’t provide such a feature. Also, this is a business problem when you move to a different tenant or within the same tenant.



Problem statement
One of the common issue Developer faces is how to move Customized Power from one site to another / one tenant to another
While PowerApps give the option to export app the package, but one needs to follow some steps to make it work in a new site/tenant. The following guide gives a brief idea of how to solve the problem of using custom forms across Sites/Tenants for any user.




Customize SharePoint List Forms using PowerApps and migrating to different site / tenant
Steps to create customize of SharePoint list forms as an app in PowerApps and importing as a package in another tenant.
1.     Go to your SharePoint site, create a list (if not yet created it), customize forms through the PowerApps (ex: change font color or background color)
2.     Save and Publish the app

3.     Then, export this as a package.
4.     Provide the name for the package with the description

5.     While exporting, please make sure that Import Setup should be as Create as New and save it.
6.     Now, click on the Export button. This will start downloading of a zip file.

7.     The exported zip package contains Microsoft.PowerApps folder and manifest JSON file. You have to navigate to Microsoft.PowerApps\apps\[numeric values] (refer to below screenshots). Inside this folder hierarchy, navigate to Microsoft.PowerApps\apps\[numeric values]. There will be only one JSON file, which needs to be edited.

Note: Before you perform the below steps, please navigate to the site where you want to copy/move this app(irrespective of the tenant). If you haven’t created the list, please create a similar list as you already created in the source site.

Once the list is ready, please get the List ID by navigating to Site Contents. In the Site Contents,
Select the list and click on the dots against the list name, go to Settings.

            In the browser URL, note down your list ID
           
           

8.      Open the JSON file in JSON editor app, now replace following sections
a.     In the embedded App, replace SiteID with target site URL, ListID with target listId and listUrl with target listUrl (here target refers to list where you want to copy the app)
b.     In dataSources, change it target list name (internal name)
c.     The tablename should be target listId(GUID)
d.     In the dataSets, change it to target site URL


Comments

Popular posts from this blog

SharePoint Workflow instances for a list item using PnP and PowerShell Scripts

Overview During migration of the SharePoint sites, checking for running instances of workflow is very important for business users. This helps loss of data, data consistency and smooth migration. Communication such issues to respective are one of the key factors for a successful migration. Problem Statement By default, instances of the workflow instances can’t be migrated to the new SharePoint environment. It becomes really hard to find such instances going to each individual list. PowerShell Scripts Following scripts, provide an easy way to find the running instances of the workflow in a given list. It checks for running instances first which provides GUID of the workflow. Then compares with workflow subscription to get the workflow names. Later, it iterates through the site users to find out site owners, to whom we can contact to highlight the same. The script requires, list name and site URLs as the basic parameters to run. It also requires a user email to w...