top of page
Search

Migrating Named Credential with password in salesforce

  • Azarudeen
  • Dec 14, 2015
  • 1 min read

I had a scenario like when migrating a named credential with password in salesforce production. I resolved that issue so I came here to give a solution for Password error problem.

1. Retrieve a Named credential from Ant Migration tool

2. XML will Look like this,

<?xml version="1.0" encoding="UTF-8"?>

<NamedCredential xmln="http://soap.sforce.com/2006/04/metadata">

<endpoint>https://prodbox-dev.herokuapp.com/v1</endpoint>

<label>prodbox_heroku</label>

<principalType>NamedUser</principalType>

<protocol>Password</protocol>

<username>technical.user.prod@techuser.dev</username>

</NamedCredential>

When i deploy the same using ant, it displays error for password.

So I added a password manually after retrieve.

<?xml version="1.0" encoding="UTF-8"?>

<NamedCredential xmln="http://soap.sforce.com/2006/04/metadata">

<endpoint>https://prodbox-dev.herokuapp.com/v1</endpoint>

<label>prodbox_heroku</label>

<principalType>NamedUser</principalType>

<protocol>Password</protocol>

<password>actual Password</password>

<username>technical.user.prod@techuser.dev</username>

</NamedCredential>


 
 
 

Comments


Featured Posts
Recent Posts
Archive
Search By Tags
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square

CONTACT US

17/15 Bentilmen Garden 2nd st, Royapuram,

Chennai - 600 013

Mobile 8608912365

azarstead@gmail.com

​​​​© 2023 by Jeffrey & Mitchell. Proudly created with Wix.com

  • Grey Facebook Icon
  • Grey Twitter Icon
  • Grey LinkedIn Icon
bottom of page