You need to sign in to do that
Don't have an account?
jpgilbert
Trouble setting the User.IsActive field
I have the following code:
But the user Active field is not updating. Am I missing something?
Regards,
James
User userupdate = new User();
userupdate.Id = "005G0000003VyQuIAK"; // this is a legit ID, I checked
userupdate.IsActive = false;
binding.update(new sObject[] {userupdate}); // binding is my active connection to SFDC, and allows me to perform other actions no problem
userupdate.Id = "005G0000003VyQuIAK"; // this is a legit ID, I checked
userupdate.IsActive = false;
binding.update(new sObject[] {userupdate}); // binding is my active connection to SFDC, and allows me to perform other actions no problem
But the user Active field is not updating. Am I missing something?
Regards,
James
Best Answer chosen by jpgilbert
Superfell
You also have to set the Specified flag, e.g. userupdate.IsActiveSpecified = true; is this a "feature" of the .NET soap stack, many types other than string have this additional specified flag that you need to set in order for it to send the value.