Have you ever tried moving PowerApps or MS Flow from one Office 365 tenant to another? Or across site collections? If you have SharePoint as a data source - then the only official way is to remove all such data sources and add them back manually. This PowerShell script will help you to automatically convert exported App packages to be compatible with the new tenant. This way you won't have to recreate SharePoint data sources.
The script will find all GUIDs that point to the old SharePoint lists with the new ones.
1. Install PnP PowerShell prerequisites
Run the script below:
Install-Module SharePointPnPPowerShellOnline
The scripts will iterate through all zip files inside the \src directory and convert them to be compatible with the new Office 365 tenant.
powershell
cd C:\FlowPowerAppsMigrator
.\RunAllScripts.ps1
Example:
All SharePoint Datasources should be converted to point to the new tenant that you chose.
This script is not responsible for causing any nuclear wars. It's all your fault.