function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dr. Thomas MillerDr. Thomas Miller 

Deploy Connected App to Scratch Org

I am working on a custom REST API and therefore need to define a connected app. I am using the new Salesforce DX model, hence I want to define the connected app once and then deploy it to scratch orgs.

I know that each time a new client ID and client secret will be created. However there are some more data in the connectedapp.xml which are not or not correctly deployed to the scratch org:
- isAdminApproved
is not deployed correctly

- IP relaxation
- session timeout 
are not deployable at all

Is this correct or am I missing something?
Dr. Thomas MillerDr. Thomas Miller
Addon: when trying to create a package version for the project I get an answer
=== Errors
(1) appname: Installing an app (appname) that has been deleted.
(2) AppSwitcher: An unexpected error occurred. Please include this ErrorId if you contact support: 1066764636-579039 (442557440)

and no version is created. Any ideas?