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 

Self-Service User not deleted

K, so....

I created a contact, made him a self-service user, everything was great.

I deactivated the self-service user and then deleted the contact. Things were pretty good.

I created a new contact with the same information. It got a different ContactId. Perfect.

I made the new contact a self-service user with the same info......problems.

When I query the self-service user object by username via the api, I get back the ContactId for the deleted Self-Service User.

I can probably just get the last result (I'm actually using the partner wsdl) in that set of queryresults, but I'd really like to permanently delete the orphaned Self-service user information from Salesforce. Is there an easy way to do this?

J_HinderJ_Hinder
Oh - and sometimes contactids and accountids come back with 3 extra letters on the end. I was just wondering why that was?
SuperfellSuperfell
they'll be 2 rows, one for the new user, and on for the de-activated user. If you only care about active users, then inlcude that filter in your SOQL query.