3

I am trying to write a trigger to update user records as soon as they are added to a Group. So I decided to write a trigger on GroupMember but it says "SObject type does not allow triggers: GroupMember" is there a workaround for this?

2

Salesforce doesn't allow to write a trigger on GroupMember object. You should write a batch class to see the changes in GroupMember record.

There is an idea around this, you can vote for on that idea.

1

GroupMember Object is not triggerable..

Verified from workbench: /services/data/v41.0/sobjects/GroupMember

enter image description here

  • I am able to query members on GroupMember object and not on CollaborationGroupMember object. – Ishan May 14 '18 at 7:35
  • @Ishan ..sorry I understood you are talking about chatter group....updated my reply.. – Ayub May 14 '18 at 7:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.