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
NM AdminNM Admin 

Is there any way to get Connected app client key and Client secrete?

Hi,
I'm creating managed package. I want to pass the Client key and Client secret fro  the app setup. Just want to know is there any way to get the client secrete and and client key  e.g. SOQL OR any other way will helpful me to pass them dynamically.



Thanks
Manj_SFDCManj_SFDC

Hi , you can create the custom setting/custom label to store the Client key and Client secret and query them in your code , this way you can use them dynamically

Mark this as solved if this helps 

Good luck !

NM AdminNM Admin
Hi,
Connected App will be a part of the managed packkage. If the an user install the manage package it will be same as my business org?
So if we share the link for installation to customer it will be same as my business org.

would it be possible to make it dynamic?

Thanks
Manj_SFDCManj_SFDC
No Connected app be in the org where the service resides (server side), you dont have to include that in the package , you need to share the secret id and the key and that can be mentioned in the custom settings