I would like to know what would happen if I try to create a Community user through Apex but I have already used all of my Licenses. What would be the result/error?
-
Why don't you try it out in a sandbox or dev org?– Robin De BondtJul 25, 2017 at 11:52
1 Answer
You should get a DmlException that would have a status code of LICENSE_LIMIT_EXCEEDED. You should be able to try-catch this exception like all normal exceptions.