Thursday, May 16, 2019

Handling Platform Events in Lightning Components

The lightning:empApi component gives methods for subscribing to a streaming channel and listening to event messages. It supports all streaming channels including channels for platform events, pushTopic events and Change Data Capture events. The lightning:empApi component uses a shared CometD connection.

Note:
  • This component is available in 44.0 api version or later.
  • This is available in Lightning Experience and only supported in desktop browsers.
To call the component's methods, add the lightning:empApi component inside your custom component and assign an aura:id attribute to it.

If you want to learn more about platform events then refer below blog:

Platform Events : Way to Deliver Custom Notifications within Salesforce or to external Applications

I have created a lightning component which will subscribe to platform event "Demo_Event__e" which we have created in our previous blog.

I have created an app page using lightning app builder named as "Platform Events App Page". and added this lightning component into it.

Code Snippet:

Below is snapshot of Lightning App page before platform event is fired.

Now fire platform event using workbench through REST API call

Platform event notification received in lightning component.

Hope this will help to understand platform events handling in lightning components. 

Looking forward for everyone's suggestions and comments!!!


77 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. When your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your. simply buzzes

    ReplyDelete
  3. I was reading some of your content on this website and I conceive this internet site is really informative ! Keep on putting up. pipedrive pricing

    ReplyDelete
  4. Thanks a lot for sharing this excellent info! I am looking forward to seeing more posts by you as soon as possible! I have judged that you do not compromise on quality. material equipements for handling

    ReplyDelete
  5. The article looks magnificent, but it would be beneficial if you can share more about the suchlike subjects in the future. Keep posting. sviluppo siti web Milano

    ReplyDelete
  6. A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. 1000 Pip Builder Forex Signals Review

    ReplyDelete
  7. I would make sure the site looked professional of course, I believe that having quality photography and a clean design are the two best ways to get a professional site. I would have a very limited amount of outgoing links on my main page and NO BANNERS from directories. Webdesign

    ReplyDelete
  8. Is there a way to subscribe to platform events for a specific records updates? I am working on Account "Target Corp", and an event was published for Target Corp. Is there a way to display that the message using EMPAPi to users only working on Target Corp?

    ReplyDelete
  9. Webmasters are guaranteed to remain competitive in the online business if they stick with SEO experts. They will have all they need to ensure business success. Webdesign Limburg

    ReplyDelete
  10. Then I start to second guess myself. All of these thoughts pop into my head more than once every day, and it's an ongoing struggle to get past all the doubts and uncertainties. Webdesignprofessioneel.be

    ReplyDelete
  11. TAXPRO is a chief expert administration firm enhancing the matter of its customers for over 30 decades. We do this by giving a wide array of administrations in the monetary space which ranges from Entry Level Strategy, Taxation consultancy administrations, GST, Audit and Assurance, Accounting, Corporate Compliance, Payroll Services, ESI/PF Consultancy, and part more. We are a group of expense experts that incorporates Chartered Accountants, Advocates, Company Secretaries, Financial counselors offering marketing for accounting to the makers, Traders, Dealers, and specialist organizations of the business. Our administrations are looked for different business, lawful, and tax assessment confusions.

    ReplyDelete
  12. However, most companies will not support sites in which the client has made changes to the original code. Make sure to discuss this during your initial consultation. Webdesigner Antwerpen

    ReplyDelete
  13. At the point when the youthful couple withdrew for their special night, my mom, I, Rupert's mom and sibling, all hosted a calm gathering among ourselves, to pay tribute to the achievement of the wedding that had occurred. My mom encouraged me to get hitched and settle down and surprisingly guaranteed me that she would toss as beautiful a gathering for me as she had tossed for Daniela. The entire event was unrealistic, similar to a fantasy that left us, groups of the couple, pretty overpowered.420 events nj

    ReplyDelete
  14. Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share. top software tools for writers

    ReplyDelete
  15. I loved the spot they leased for facilitating the event, a spot close to Sorbonne in the Latin Quarters. Social events

    ReplyDelete
  16. ESD Wrist Strap is a basic and widely facility in ESD equipment usage, which is very convenient for workers to operate and enables them to ground while working on the Sensitive Electronics. It is compose of wrist loop and grounding wire, the wrist loop is contact with skin directly. Here's information about anti-static wristband, read on to know.

    ReplyDelete
  17. greetings! This is my 1st remark here so i just wanted to offer a brief shout out and inform you i truely revel in reading thru your posts. Are you able to recommend another blogs/web sites/forums that go over the same subjects? Thank you to your time! I really like your writing so much! Share we keep up a correspondence more approximately your publish on aol? I require an expert on this residence to get to the bottom of my hassle. Can be that’s you! Having a sit up for appearance you. Thank you for every other astounding article. Where else should everyone get that type of statistics in this sort of ideal manner of writing? I have a presentation next week, and i'm at the search for such information. 모두의토토

    ReplyDelete
  18. hiya there and thanks for your information – i’ve truly picked up whatever new from proper right here. I did but knowledge a few technical points the usage of this web website, considering i experienced to reload the website usually preceding to i should get it to load nicely. I have been wondering in case your net hosting is adequate? Now not that i'm complaining, however sluggish loading instances instances will on occasion have an effect on your placement in google and can harm your high-quality rating if marketing and advertising and marketing with adwords. Besides i’m adding this rss to my email and can look out for lots extra of your respective thrilling content material. Ensure you update this once more quickly.. I just like the valuable info you offer on your articles. I will bookmark your blog and test once more here often. I’m pretty positive i’ll research plenty of new stuff proper right here! Top success for the subsequent! 토토서치

    ReplyDelete
  19. super information in your weblog, thanks for taking the time to percentage with us. Tremendous insight you have on this, it’s best to find a internet site that details so much facts approximately extraordinary artists. Very useful facts shared in this article, properly written! I could be reading your articles and the usage of the informative pointers. Looking forward to examine such knowledgeable articles. I’ve been searching for hours in this subject matter and sooner or later located your put up. , i have read your post and i am very impressed. 먹튀대피소

    ReplyDelete
  20. Through a greater part of these stages, you will have the choice to deal with installments by means of numerous courses like Visas, wire moves, or even PayPal. web-based reserved seating software

    ReplyDelete
  21. I loved the spot they leased for facilitating the event, a spot close to Sorbonne in the Latin Quarters.Women Focused Events

    ReplyDelete
  22. Awesome dispatch! I am indeed getting apt to over this info, is truly neighborly my buddy. Likewise fantastic blog here among many of the costly info you acquire. Reserve up the beneficial process you are doing here 먹튀검증

    ReplyDelete
  23. I should assert barely that its astounding! The blog is informational also always fabricate amazing entitys. 토토 사이트

    ReplyDelete
  24. typically i in no way touch upon blogs but your article is so convincing that i in no way stop myself to say something about it. You’re doing a extremely good job man and thanks for the submit,interesting stuff to examine. Keep it up. Amazing publish! I'm surely on the point of across this facts, could be very beneficial my buddy. Also exceptional blog right here with all of the precious records you've got. Keep up the coolest paintings you're doing right here! 토토안전센터

    ReplyDelete
  25. thanks for first-rate and informative submit. This newsletter is sincerely contains lot more information about this topic. We've got read your all the records some points also are correct and some typically are excellent. Superb publish i would like to thank you for the efforts you've got made in writing this thrilling and informed article. I absolutely appreciate the kind of subjects you publish here. Thanks for sharing statistics this is sincerely useful. Suitable day! Need to realize the stairs to remedy 먹튀신고

    ReplyDelete
  26. i found your this publish at the same time as searching for some associated facts on weblog search... Its an amazing publish.. Keep posting and replace the facts . It turned into a exquisite risk to visit this type of website and i am glad to know. Thank you so much for giving us a chance to have this possibility . I discovered your this put up while searching for some associated data on weblog search... Its a very good post.. Preserve posting and update the facts 가입머니

    ReplyDelete
  27. Hello exact writing and true snap shots. We wish you a satisfied and wholesome new year 2021. I would like a whole lot of exact posts in the destiny. Neat put up. There may be an issue along side your website in net explorer, might take a look at this¡okay ie nevertheless is the market chief and a large section of humans will skip over your extremely good writing due to this trouble. Wonderful blog. I delighted in perusing your articles. That is sincerely an super perused for me. I've bookmarked it and i'm awaiting perusing new articles. Interesting put up. I have been thinking about this difficulty, so thank you for posting. Quite cool publish. It 's truly very excellent and beneficial put up. Thanks 토토경비대

    ReplyDelete
  28. wow! Thank you! I usually desired to jot down on my web page some thing like that. Am i able to encompass a part of your put up to my website? Have you ever questioned who posts some of these things that you encounter? Recently it seems to have emerge as a pandemic, although it appears to be converting for the higher. Do you settle? Tremendous recommendations and really easy to understand. I simply stumbled upon your weblog and wanted to mention that i have actually enjoyed analyzing your weblog posts. I really like this post. It's far one of the exceptional posts that i've study in a long time. Thanks plenty for this appropriate put up. 토토사이트코드

    ReplyDelete
  29. having read this i assumed it was without a doubt informative. I recognize you taking the time and effort to place this information together. I once again discover myself spending a massive quantity of time both studying and commenting. But so what, it changed into nevertheless well worth it! It is good to pay attention that your save is now expanding to new locations. I've been a patron of super eyes because of all of the superb work that you guys do . Wish that this enlargement move of yours will turn out to be successful. I can genuinely go and notice this new save of yours . 토토서치

    ReplyDelete
  30. it’s the satisfactory time to make a few plans for the destiny and it's time to be glad. I have study this publish and if i should i choice to indicate you few exciting things or advice. Possibly you can write next articles referring to this article. I choice to study greater matters approximately it!. Pretty section of content. I just stumbled upon your blog and in accession capital to claim that i get absolutely enjoyed account your weblog posts. Any manner i may be subscribing to your feeds and even i success you get entry to continually speedy. I’m truly inspired together with your writing competencies as well as with the layout on your weblog. Is that this a paid subject or did you alter it your self? Either manner maintain up the pleasant satisfactory writing, it’s uncommon to peer a incredible weblog like this one these days.. 코인카지노

    ReplyDelete
  31. actually i appreciate the attempt you made to share the knowledge. The topic here i found became clearly powerful to the topic which i was getting to know for a long time . I suppose that is one of the most great statistics for me. And that i’m satisfied analyzing your article. However must remark on a few trendy things, the net web page fashion is ideal, the articles is really extraordinary . I recently came across your weblog and had been studying alongside. I notion i would leave my first comment. I don't know what to mention besides that i've enjoyed reading. Pleasant blog. I can hold visiting this blog very often. It's a cold day so my nostril is bloodless nevertheless, have a warm day! Please cross in here . Satisfactory wishes for a glad new yr! I'm hoping this 12 months may be a greater happier and greater smiling yr~ there is ideal records . You've got done a incredible activity. I will clearly digg it and for my part advise to my friends. I am confident they will be benefited from this net site. Wow, this is actually thrilling studying. I am satisfied i found this and got to examine it. Fantastic task in this content material. I really like it. I am jovial you take pride in what you write. It makes you stand way out from many different writers that can't push incredible content like you 먹튀패스

    ReplyDelete
  32. Rupert, was really a companion of mine. It was through me that she had met him. My sister was functioning as a showing associate then, at that point, Deep Etiching Service

    ReplyDelete
  33. I know this is one of the most meaningful information for me. And I'm animated reading your article. But should remark on some general things, the website style is perfect; the articles are great. Thanks for the ton of tangible and attainable help. https://123movies-website.org

    ReplyDelete
  34. EVERYTHING YOU NEED TO KNOW ABOUT " 메이저사이트목록 " IN BLACK OPS 3!

    ReplyDelete
  35. This was a really great contest and hopefully I can attend the next one. It was alot of fun and I really enjoyed myself.. https://megashare-website.com

    ReplyDelete
  36. I really appreciate the kind of topics post here. Thanks for sharing us a great information that is actually helpful. Good day! https://gomovies.group

    ReplyDelete
  37. It proved to be Very helpful to me and I am sure to all the commentators here! https://primewire.today

    ReplyDelete
  38. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free https://xmovies8.one

    ReplyDelete
  39. I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. https://onlinemovie25.com

    ReplyDelete
  40. Without fail, your writing style is top professional; even your website also looks amazing thank you for posting. https://1movies.buzz

    ReplyDelete
  41. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. https://projectfreetv.space/

    ReplyDelete
  42. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. https://solar-movies.one

    ReplyDelete
  43. Succeed! It could be one of the most useful blogs we have ever come across on the subject. Excellent info! I’m also an expert in this topic so I can understand your effort very well. Thanks for the huge help. https://currentputlocker.site

    ReplyDelete
  44. It was a wonderful occasion. Mike was so amped up for it. He and Laura coordinated his 40th birthday celebration party with energy and panacheevents lineup

    ReplyDelete
  45. I visit your blog regularly and recommend it to all of those who wanted to enhance their knowledge with ease. The style of writing is excellent and also the content is top-notch. Thanks for that shrewdness you provide the readers! https://123moviesite.one

    ReplyDelete
  46. I have a hard time describing my thoughts on content, but I really felt I should here. Your article is really great. I like the way you wrote this information https://couchtuner.quest

    ReplyDelete
  47. It is included in my habit that I often visit blogs in my free time, so after landing on your blog. I have thoroughly impressed with it and decided to take out some precious time to visit it again and again. Thanks. https://the123movies.site

    ReplyDelete
  48. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. https://soap2daymovies.website

    ReplyDelete
  49. Im no expert, but I believe you just made an excellent point. You certainly fully understand what youre speaking about, and I can truly get behind that. https://123putlocker.website

    ReplyDelete
  50. Hi there! Nice post! Please tell us when I will see a follow up! https://putlockertv.one

    ReplyDelete
  51. Thanks for sharing the post.. parents are worlds best person in each lives of individual..they need or must succeed to sustain needs of the family. https://solarmovies.space

    ReplyDelete
  52. You delivered such an impressive piece to read, giving every subject enlightenment for us to gain information. Thanks for sharing such information with us due to which my several concepts have been cleared. https://movies123.win

    ReplyDelete
  53. Wonderful blog! Do you have any tips and hints for aspiring writers? Because I’m going to start my website soon, but I’m a little lost on everything. Many thanks! https://movies123.win

    ReplyDelete
  54. Wonderful article. Fascinating to read. I love to read such an excellent article. Thanks! It has made my task more and extra easy. Keep rocking. https://the123movies.top

    ReplyDelete
  55. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained!
    https://watchcouchtuner.website

    ReplyDelete
  56. I am thankful to you for sharing this plethora of useful information. I found this resource utmost beneficial for me. Thanks a lot for hard work. https://go123movies.site

    ReplyDelete
  57. Remarkable article, it is particularly useful! I quietly began in this, and I'm becoming more acquainted with it better! Delights, keep doing more and extra impressive https://watchcouchtuner.space

    ReplyDelete
  58. The post is written in very a good manner and it contains many useful information for me. https://1primewire.top

    ReplyDelete
  59. After reading your article I was amazed. I know that you explain it very well. And I hope that other readers will also experience how I feel after reading your article 출장마사지

    ReplyDelete
  60. I read your post and I found it amazing! thank! 슬롯사이트

    ReplyDelete
  61. Very likely I’m going to bookmark your blog . You absolutely have wonderful stories. Cheers for sharing with us your blog. 토토커뮤니티

    ReplyDelete
  62. Hope you will give more information on this topics in your next articles 토토커뮤니티

    ReplyDelete
  63. Really satisfied with all the information I have found in this article. It gives immense knowledge on physical education, it is very helpful and quite generous to spread a good message. The author has done a brilliant job on summing all the points here. You just made a new fan with your writing skills. Cheers! sydney podiatrists

    ReplyDelete
  64. Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post. sydney podiatrists

    ReplyDelete
  65. Merely a smiling visitant here to share the love (:, btw outstanding style. silicone feeding sets

    ReplyDelete
  66. Why do only so much written on this subject? Here you see more. silicone bib

    ReplyDelete
  67. This surely helps me in my work. Lol, thanks for your comment! wink Glad you found it helpful. Skip Hire Barrow in Furness

    ReplyDelete
  68. This particular is usually apparently essential and moreover outstanding truth along with for sure fair-minded and moreover admittedly useful My business is looking to find in advance designed for this specific useful stuffs… 777qiuqiu login

    ReplyDelete
  69. Glad to see this kind of brilliant and very interesting informative post. social media management australia

    ReplyDelete
  70. We are one of the best cosplay costumes supplier in China.Good looking,educated,sexy,college girls,housewives,model,russains are ready for your personal service. 토토솔루션

    ReplyDelete
  71. I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. 먹튀없는사이트

    ReplyDelete
  72. I felt very happy while reading this site. This was really very informative site for me. I really liked it. This was really a cordial post. Thanks a lot!. 먹튀없는사이트

    ReplyDelete
  73. I felt very happy while reading this site. This was really very informative site for me. I really liked it. This was really a cordial post. Thanks a lot!. 검증사이트

    ReplyDelete