function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rick MacGuiganRick MacGuigan 

Add Account record link to chatter feed

Hello. I'm able to add an account link using a merge field on an email alert. However, I can't locate the same Account merge field when building a post to chatter group from Process builder 'merge field' button.  
RaidanRaidan
Hi Rick,

Instead of using the Account Link merge field, you can create your own link in the Message body:
https://<your-instance>.salesforce.com/{![Account]}
Replace <your-instance> with your org instance (e.g.:na31).
 
Rick MacGuiganRick MacGuigan
Thanks for your reply Raidan. Is there a way to dynamically assign the instance so as not to hard code it ? Also, is there a way to represent this url as a hyperlink text 'Link to report ?'  
RaidanRaidan
Hi Rick,

The only way we can assign the URL dynamically is to create a formula field in the Account object. Use this formula:
LEFT($Api.Partner_Server_URL_300, FIND( '/services', $Api.Partner_Server_URL_300))
Then you can use this formula field as a merge field in the message body of the Chatter post.
And I don't think you can create a hyperlink text.

Please don't forget to mark my answer if it helps you. Who knows it might help other users who is having the same questions. Thanks!