0

Here is my requirement with chatter feed tracking:

i can create any record, in chatter field it shows starting with record name.

But i want to create with owner name in chatter field.

Screenshot: enter image description here

  • any body help me... – fsales572 Sep 3 '14 at 9:28
  • Did you want the name to be a link? Pretty sure you can do this with the ConnectAPI, so let me know and I'll write an example – BritishBoyinDC Sep 3 '14 at 15:37
  • Hi,any body help me regarding above screenshot in the record name(testrec) place i want owner name(salesforce) in chatter field. – fsales572 Sep 4 '14 at 5:46
0

So that top header is always going to contain the creator information...but assuming that is a child object creating the feed item on its parent (that's what is looks like) - you can turn that auto creation off, and then create a post on the parent with a trigger on the child object...so something like this where Project__c refers to the parent record:

String s = userinfo.getname() + ' created a new Project';
ConnectAPI.ChatterFeeds.postFeedItem(null, ConnectApi.FeedType.Record, child.Project__c, s);

You could then message more useful information with rich text like mentions and links if required....

| improve this answer | |

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.