Replies: 1 comment 10 replies
-
@mcarvin8 - Thanks for posting this suggestion. I have a couple of questions and a suggestion.
|
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_connectedapp.htm
In order to deploy connected apps using the Salesforce CLI, you have to delete the consumer key line manually or else the deployment will fail because the key is unique in each org until you do a refresh.
I had to write a custom script to automatically delete the consumer key lines in every consumer app meta file before starting a deployment with connected apps. This works to deploy apps to multiple orgs with the other settings the same (previously I just had to instruct our developers to manually delete the line after retrieval).
The Salesforce CLI should be updated to not include the consumer key when retrieving connected apps from an org so the files will be deployable automatically after retrieval.
Beta Was this translation helpful? Give feedback.
All reactions