2

How can I create a flow that the Account owner would automatically follow the account record in chatter regardless of which user created the record.

If this is not possible can it be done using Apex. Any sample code would be much appreciated!

3
  • Is this still an open question?
    – Adrian Larson
    Jul 1, 2016 at 15:24
  • 1
    Thanks @AdrianLarson ! You suggestion worked. I was also able to implement it using flow.
    – force007
    Jul 1, 2016 at 17:29
  • Cool! Feel free to post your own solution as an answer. Just make sure you accept one eventually so the community can tell you got it resolved. :)
    – Adrian Larson
    Jul 1, 2016 at 17:29

1 Answer 1

2

I don't know if what you want can be achieved via flow, but it can via Apex, using the EntitySubscription object.

Example:

EntitySubscription follow = new EntitySubscription(
    ParentId = accountToFollow.Id, SubscriberId = accountToFollow.OwnerId
);
insert follow;

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.