Activity › Forums › Salesforce® Discussions › How do I add the lightning:empApi Lightning component in Salesforce? Salesforce® Discussions How do I add the lightning:empApi Lightning component in Salesforce? Posted by Shweta on October 15, 2020 at 5:49 PM How do I add the lightning:empApi Lightning component in Salesforce? Deepak replied 5 years, 7 months ago 3 Members · 2 Replies 2 Replies Anjali Member October 16, 2020 at 1:13 PM Please refer the below link- https://developer.salesforce.com/docs/component-library/bundle/lightning:empApi/documentation [adinserter block='9'] Deepak Member October 16, 2020 at 1:17 PM Add the lightning:empApi inside your custom component and also you can assign aura:id. <lightning:empApi aura:id=”empApi”/> Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me