salesforce - Deactivate a portal user in a test class -


does know how deactivate portal user in test class?

i'm trying delete accounts assoicated portal user , figured if deactivated portal user may able delete account.

i've tried updating user with

isportalenabled = false isactive = false 

however doesn't seem work. when checking user after update, isportalenabled = true , isactive = false. (is salesforce seems doing scenes?)


Comments

  1. Hi. We are facing exactly the same issue. Can you please share your solution if you found anything related to this problem. Thanks

    ReplyDelete

Post a Comment

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -