+ Start a Discussion

how to share a record to another salesforce account while clicking a button

I want to know the javascript code to share my record from one sf account to another.


I have created connection between two sf accounts.


When i click a button say Share, it should share the record to my another sf account.


I know very well about 'Forward Account' or 'Forward Oppty' in related list.


I want the share button to be in my page layout itself.