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
ClaiborneClaiborne 

Testing with Test Self-Service Users

I have apex processes that interact with contacts who also are self-service portal users. I only want contacts who are "super users." The code works fine.

 

The problem is that for testing, there apparently is no way to create a test self-service user. DML operations are prohibited on Self-Service Users.

 

I can create Self-Service users via the API, but not in Apex.

 

To exercise and validate my code, I am being force to create a dummy account, contact, and self-service user in both the production environment and the test environment. This is just WRONG.

 

Any work-around would be greatly appreciated.

prb112075prb112075

hmm looking for a solution to this too... back to google...

 

ClaiborneClaiborne

Maybe I should change the title from "Testing with Test Self-Service Users" to "Testing with Social Users." Then I could get some attention.