You need to sign in to do that
Don't have an account?
HarrySie
Field not writeable for Permissionset ProfileID
Hello,
I tried to add a new permissionset in a testclass for a user. When trying to create the new permissionset, For ID tells me: Field is not writeable for Permissionset.ProfileID. Here is the code:
permissionset ps = new permissionset(Name='TestPermissionset', ProfileId = '00eJ0000000QSA3', isownedbyProfile = true);
What is the error here?
Thanks
Harald