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
J_HinderJ_Hinder 

Trying to update SelfServiceUser Password with Partner WSDL

I'm kind of at a loss with this one. I understand the concepts for updating regular fields in salesforce with the partner wsdl (accounts, contacts & the like), but I'm not sure how I'm going to go about updating the password for a selfservice user?

I've described the object, and there's no password field. Ditto for looking at it in Sforce Explorer. Ditto for the contact object. I tried this, but it didn't work:




Dim updatePwd As Sforce_Pwd.sObject = New Sforce_Pwd.sObject
updatePwd.Id = strSSID
updatePwd.Any = New System.Xml.XmlElement() {GetNewXmlElement("Password", strNewPassword)}

updatePwd.type = "SelfServiceUser"


strSSID is the id of the SelfServiceUser
strNewPassword is the password I'm trying to send in there.

Can this be done with the Partner WSDL?
SuperfellSuperfell
You dont' update an sobject to set the password, call the setPassword or resetPassword operation.
J_HinderJ_Hinder
So, then, I can just do this:


Dim setPasswordResult As Sforce_Pwd.SetPasswordResult = binding.setPassword(strSSID, strNewPassword)
SuperfellSuperfell
yes