You need to sign in to do that
Don't have an account?
Andy S.
Auto-follow new opportunities on followed Account
I am following an Account and want to be notified whenever a new Opportunity is created for that account. Is that available out of the box with Chatter? It seems somewhat obvious but I can't find an FAQ or discussion board entry on it.
If this is not available today, would an apex Trigger be the way to create such functionality?
It is not - check out Chatter Cloud Swarm on the AppExchange for some code on how this can be done.
I'm working with the author to refactor the existing package to make it scale better. Here's a sample of the unpublished new code: a trigger + asynch method:
Along these same lines it would be nice to be able to auto subscribe other users when an object is created. In our company the sales rep is the owner so they are automatically subscribed to follow, but they have a service rep that needs to follow the account as well and they are automatically assigned to the account so there should be a way during this assignment to subscribe them to the account.
Hi John,
Is there a way I can write a trigger on the custom object to Post an Idea to a group or profile?
I tried with Feed post insert and it displays for only one user who creates the record on a custom object not the whole group who are following.
FeedPost fp=new FeedPost();
fp.Bosy='Test Post to all Group';
insert fp;
Also Is there anyway/code I can dynamically set the Feed tracking of a field on a custom object?
thanks
When you create a post, it always has to originate from somewhere or something. That means if you post to a group, everyone in the group will see the post so I think that will work for your purposes. If you post not to a group, then only the people following the posting user will see it.
I don't believe you can set field tracking settings in Apex, but you might be able to use the Metadata API to set these from another service
Hi John,
Thanks for valuable comment.
Can you please post the apex code , How to post a msg to group?
thanks a lot
Hi John,
I was wondering if the code for auto following opportunities when a user is following accounts, has been implemented into any packages/apps availble through the app exchange?
I have installed the chatter app "Cloud Swarm 3" but this does not provide the auto-follow functionality for opportunities when following accounts.
Thanks.
As written, the code & app won't let you cross objects where you follow opportunities based on Account criteria, but it's not terribly hard to support that with some custom logic. I don't belive the author is working to support that case, but I can check with him.
Taking this szenario where a user automatically follows opportunities when following the parent account (implemented in a trigger). Is there a way to programmatically unfollow all these opportunities on unfollowing the account? I don't see that it can be done by a trigger on EntitySubscription. Can it be done any way?
Thanks
Felix Kroppenstedt