function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Can we write trigger on public group ?

As per my use case I am creating public group whenever new account is getting created and public group name is followed like Publicgroup-accountId

i am stuck on to update one of account field with public group record Id once public group is created
Can someone please help me on that ?
HarshHarsh (Salesforce Developers) 
You can not update the user Public Group. You need to Delete the old group and insert a new one.
The GroupMember object is not a triggerable object. So you can not write triggers on Public Group.
Please review similar references below.

Please mark it as Best Answer if the above information was helpful.