You need to sign in to do that
Don't have an account?
Creating a Trigger on a User
I am trying to create a trigger that notifies an internal group when a Partner Portal user has been created.
The trigger works fine, but the test fails.
When I create a partner portal user, the resulting record has a usertype of "PowerPartner". This is the field I use in the trigger to determine if the user being created is a portal user.
But when I create the portal user in the unit test, the usertype is "PowerCustomerSuccess"
My work-around is to check for both usertype values, but this is wrong.
Can anyone explain this behavior.