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.

Reference: https://salesforce.stackexchange.com/questions/310240/sessionpermsetactivation-doesnt-work-according-to-specification

Attached is one sample code snippet.



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow