I am having a hard time writing an Apex script properly to remove all users assigned to a permission set called E2CP Case Feed End User. Here is what my error is (in Copado):
ERROR Unexpected token 'permID'. Line: 1 Column: 4
Here is my code:
ID permID = [SELECT Id FROM PermissionSet WHERE name = 'E2CP_Case_Feed_End_User'].Id:
delete [SELECT Id FROM PermissionSetAssignment WHERE PermissionSetId = :permID];
I appreciate any advice!
[community]
tab is to be used for issues pertaining to theSalesforce Communities
feature, which this question does not appear to be.