Salesforce Fact #907 | Session based PS in Apex
The object SessionPermSetActivation stores the active Session based PS assignments.
We can insert data in this object from apex as well.
If you encounter the error 'Field is not writeable: SessionPermSetActivation.AuthSessionId' then you need to enable the system permission: 'Manage Session Permission Set Activation' for the user.
Attached is one sample code snippet.
Comments
Post a Comment