Unfortunately method DocumentSet.Create is not allowed in Sandbox. Is there any other way to do that?
I have found a trick to create Document Set in a Sandbox Solution. First Create a Folder and then Convert the Folder to Document Set Content Type. Please check my post below: