Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8630453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:04:05+00:00 2026-06-12T09:04:05+00:00

I am using SOAP Partner API and I have a Developer edition. I am

  • 0

I am using SOAP Partner API and I have a Developer edition. I am creating users by using API. And upon creation of users I want to email these users temporary password which they can use to login to SalesForce.

This is my code:

SaveResult[] results = connection.create(new SObject[] { user });

if (results[0].isSuccess())
{
out.println("Created user: " + results[0].getId());

//connection.setPassword(results[0].getId(), "password");
ResetPasswordResult rpr = connection.resetPassword(results[0].getId());
String result = rpr.getPassword();
  System.out.println("The temporary password for user ID " + results[0].getId()
        + " is " + result);
}
else
{
out.println("Error: " + results[0].getErrors()[0].getStatusCode() + 
                   ":" + results[0].getErrors()[0].getMessage());
}

This is the output I am getting in console:

The temporary password for user ID 005E0000000MwkZIAS is ucQD2PADs

However, the user is NOT receiving any password. 🙁

Thanks,

Wap Rau

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:04:06+00:00Added an answer on June 12, 2026 at 9:04 am

    If you build & pass an EmailHeader in your soap request you can control what types of emails will get sent from your request.

    It looks like you’re using WSC, so you can add this call before calling resetPassword, which will enabled emails being sent to users. This should then send the standard reset password email.

    connection.setEmailHeader(false, false, true);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to disable a User programmetically by using SOAP API. How can I
i am using SOAP API for SugarCRM . I want to download document using
I am new to using soap. I have a soap method returning an object.
I am trying to call magento api using Soap from android but I am
I'm working with SOAP using the javax.xml.soap package. I have a javax.xml.soap.SOAPMessage object that
I have been using SOAP to deal with Salesforce.com and have been using the
I am going to pull data in batches per day using soap api, i
It seems I can communicate with Salesforce Metadata API just using SOAP python client
How can I call a web service directly without using soap? I basically want
my iphone app is using soap web-services. I want to know how it would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.