For a SharePoint list I customized a form (Integrate -> PowerApps -> customize form), which was working fine.
For production release, as the list form got created in default PowerApps environment, I exported the customize form package and ran a script to Set-AdminPowerAppSharepointFormEnvironment to make the 'production' environment as the go-to storage environment for all list forms instead of default, after running the script, I confirmed that any new list forms are getting created & referring to the new production environment.
ISSUE:
For the existing form (which I exported), I deleted the custom form which is tied to default environment, imported the app (zip file) to the production environment,
As the SharePoint site and the list are the same, I don't see any issues with connections and published the app in the production environment, but the imported app is not getting integrated with the same SharePoint list.
I tried to import as new app and as Update, after the import, if I try customize app (Integrate -> PowerApps -> customize form), it is creating a new app but not integrating with the app imported.
I tried to update JSON but I don't see any environment Id reference in the JSON file with the form export package.