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
IntroAmmyIntroAmmy 

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) 
Hi,
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.
https://developer.salesforce.com/forums/?id=906F0000000AFHeIAO

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

Thanks.