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
smita bhargavasmita bhargava 

example on named credential

I am new to named credential concept in sfdc rest integration.
can anyone explain this with an example?

smita
SandhyaSandhya (Salesforce Developers) 
Hi,

I would suggest you refer saleforce help article on this

https://help.salesforce.com/articleView?id=named_credentials_define.htm&type=5

 https://help.salesforce.com/articleView?id=named_credentials_about.htm&type=5
 
https://www.jitendrazaa.com/blog/salesforce/salesforce-to-salesforce-integration-using-named-credentials-in-just-5-lines-of-code/
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.

Best Regards,
Sandhya
 
SKSANJAYSKSANJAY
Hi Smita,

Named credentials is an another way to configure your endpoint and autorization settings such as username and password. Once you create a named credential, you no need to further create a remote site setting record as that named credential will do all jobs.

This is very helpful as you can manage multiple orgs being configured effectively using named credentials without making changes to another org. You can symply deploy it.

Follow below docs for concrete knowledge.

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts_named_credentials.htm