There is another option to auto add user to chatter group (not include using apex Trigger), which is using Process Builder with Quick Action, which is much more simpler compare to using time-dependent action workflow and Flow.
Here is the steps:
1. Create Process Builder
2. Select an object
3. Define the Criteria
4. In Immediate Actions, select Quick Actions
5. Enter Action Name
6. Filter Search By Type | Create a Record | NewGroupMember (once selected it will become CollaborationGroup.NewGroupMember)
7. You need to provide 2 variables for the quick actions:
- Related Record ID = Chatter Group Id
- Member Id reference to [User].Id
No comments:
Post a Comment