A blog about Salesforce CRM Configuration and development

Wednesday, 1 May 2019

Copy To Clipboard | Lightning Component | Copy sObject Record Link


Hello Guys,

In this blog post, I am going to share the 'Copy To Clipboard' functionality in the lightning component using javascript. While working with the records in Salesforce sometimes user needs the record link to share in an email or need to use in the documentation or somewhere else.


This component will copy the record link in the clipboard in just a single click, the user does not need to copy the record link from browser URL. The component can be used for every standard and custom object, the user just needs to add the component on the object detail page and needs to click on the link button icon, the record link will be copied in the clipboard.

Find the full component code below.

copyToClipboardCmp
copyToClipboardCmpController copyToClipboardCmpHelper copyToClipboardCntrl

Full code on GITHUB.
Happy Coding...! 
Share:

1 comment:

  1. Hats off to your presence of mind..I really enjoyed reading your blog. I really appreciate your information which you shared with us.
    CRM Software

    ReplyDelete

Trailhead Profile


Follow by Email

Total Pageviews

Followers

Popular Posts

Powered by Blogger.

Contact form

Name

Email *

Message *