• ggeorge
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hello.  I need to run unit tests on code that applies to customer portal users.  I tried to create a portal user in code (instantiate User object, assign it to the portal user profile, then insert) but the code fails with an invalid cross-reference ID at the insert.

 

I presume this means I can't create portal users programmatically and instead have to refer to an existing portal user ID instead?

 

Thanks

David