{"id":114,"date":"2018-08-27T14:07:43","date_gmt":"2018-08-27T12:07:43","guid":{"rendered":"https:\/\/transferttexei.wordpress.com\/2021\/08\/10\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/"},"modified":"2023-08-16T15:29:34","modified_gmt":"2023-08-16T13:29:34","slug":"get-live-notifications-when-the-record-youre-viewing-gets-modified","status":"publish","type":"post","link":"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/","title":{"rendered":"Get live notifications when the record you\u2019re viewing gets modified"},"content":{"rendered":"\r\n<p>Winter \u201919 introduces a new component, lightning:empApi, that lets you easily receive streaming events directly in your Lightning Components. Another new feature that comes in Developer Preview in Winter \u201919 is <a href=\"https:\/\/releasenotes.docs.salesforce.com\/en-us\/winter19\/release-notes\/rn_data_change_events.htm\" target=\"_blank\" rel=\"noopener\">Change Data Capture<\/a>. What\u2019s best than doing a demo component to test these 2 new features?<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Change Data\u00a0Capture<\/h2>\r\n\r\n\r\n\r\n<p>Change Data Capture is a really powerful feature that will send a notification everytime a record is created, updated, deleted or undeleted. This is very handy to keep data consistent across all your applications. No need anymore to setup Workflows, Process Builder or Triggers, this comes out of the box for just one click.<\/p>\r\n\r\n\r\n\r\n<p>You activate Change Data Capture per sObject directly in Setup:<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"205\" class=\"wp-image-2149\" src=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_eM-Bjra8giy5bdaDq8DYTQ.png\" alt=\"\" srcset=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_eM-Bjra8giy5bdaDq8DYTQ-200x51.png 200w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_eM-Bjra8giy5bdaDq8DYTQ-300x77.png 300w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_eM-Bjra8giy5bdaDq8DYTQ-400x103.png 400w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_eM-Bjra8giy5bdaDq8DYTQ-600x154.png 600w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_eM-Bjra8giy5bdaDq8DYTQ-768x197.png 768w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_eM-Bjra8giy5bdaDq8DYTQ.png 800w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>So far all custom objects are supported, however only a subset on standard objects are, have a look <a href=\"https:\/\/releasenotes.docs.salesforce.com\/en-us\/winter19\/release-notes\/rn_data_change_events.htm\" target=\"_blank\" rel=\"noopener\">here<\/a> to get the whole list.<\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\r\n<p>Note: At the time of writing, Change Data Capture is still in Developer Preview. When it goes GA, have a look to the updated list of supported sObjects, limits and pricing.<\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p>To test my component, I activated it in my Scratch Org for a standard object and a custom object.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">lightning:empApi, using the component<\/h2>\r\n\r\n\r\n\r\n<p>The code of the component is available in my GitHub here:<\/p>\r\n\r\n\r\n<p><a href=\"https:\/\/github.com\/FabienTaillon\/Modification-Notification\">https:\/\/github.com\/FabienTaillon\/Modification-Notification<\/a><\/p>\n\r\n\r\n\r\n<p>Once you\u2019ve added the component to your org, just go to the record page of your object (if you\u2019ve activated Change Data Catpure for Account, let\u2019s do it on the Account page), edit it in App Builder and add it to the page.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"alignnone wp-image-2151\" src=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_VjzqiBMZV4pVSVDUMXSe8Q.gif\" alt=\"lightning:empApi\" width=\"1162\" height=\"477\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Don\u2019t add it inside a tab as these are lazy loaded, the component would not be loaded if you don\u2019t click on this specific tab (and thus notification wouldn\u2019t work).<\/p>\r\n\r\n\r\n\r\n<p>That\u2019s it! Next time someone else modifies the record you\u2019re viewing, you\u2019ll see a notification like this at the top of the page:<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"800\" height=\"322\" class=\"wp-image-2150\" src=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_lRBpd91mosgnCqFLterDkw.png\" alt=\"\" srcset=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_lRBpd91mosgnCqFLterDkw-200x81.png 200w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_lRBpd91mosgnCqFLterDkw-300x121.png 300w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_lRBpd91mosgnCqFLterDkw-400x161.png 400w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_lRBpd91mosgnCqFLterDkw-600x242.png 600w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_lRBpd91mosgnCqFLterDkw-768x309.png 768w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_lRBpd91mosgnCqFLterDkw.png 800w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">lightning:empApi, how it works?<\/h3>\r\n\r\n\r\n\r\n<p>The component markup is pretty basic, the only thing to notice is the use of <code>lightning:empApi<\/code> component:<\/p>\r\n\r\n\r\n<script src=\"https:\/\/gist.github.com\/d708ca797ab74e2054c521b1ee30f5a0.js\"><\/script>\n\r\n\r\n\r\n<p>The controller is a little bit longer, but don\u2019t worry, nothing groundbreaking here:<\/p>\r\n\r\n\r\n<script src=\"https:\/\/gist.github.com\/21b1c987c82a05d9d761e9eb5d09a771.js\"><\/script>\n\r\n\r\n\r\n<p>Lightning:empApi, here are key things to highlight:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>line 5: getting the empApi component in JS Controller:<\/li>\r\n<\/ul>\r\n\r\n\r\n<script src=\"https:\/\/gist.github.com\/6b4c3c6510d001bf7053adb947766a16.js\"><\/script>\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>line 7 to 18: getting the channel to subscribe to. According to the <a href=\"https:\/\/releasenotes.docs.salesforce.com\/en-us\/winter18\/release-notes\/rn_api_data_change_events.htm\" target=\"_blank\" rel=\"noopener\">documentation<\/a>, the channel to subscribe to get notifications is not the same depending whether it\u2019s a standard object or a custom one.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p>For a standard object:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>\/data\/&lt;Standard_Object_Name&gt;ChangeEvent<\/code><\/pre>\r\n\r\n\r\n\r\n<p>For a custom one:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>\/data\/&lt;Custom_Object_Name&gt;__ChangeEvent<\/code><\/pre>\r\n\r\n\r\n\r\n<p>So handling this quite easily thanks to <code>force:hasSObjectName<\/code>\u00a0:<\/p>\r\n\r\n\r\n<script src=\"https:\/\/gist.github.com\/1ed3765902734a0e9f53c04ce3a34a13.js\"><\/script>\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>line 20: setting the replay id. I\u2019ll use the text from the documentation as I find it perfectly well written to explain it:<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\r\n<p>Indicates what point in the stream to replay events from. Specify -1 to get new events from the tip of the stream, -2 to replay from the last saved event, or a specific event replay ID to get all saved and new events after that ID.<\/p>\r\n<\/blockquote>\r\n\r\n\r\n<script src=\"https:\/\/gist.github.com\/4b274d3a5314bb4ff75434e3e4bd3e3c.js\"><\/script>\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>line 22 to 43: this is the main part of the component, this callback function will be called everytime we receive a notification.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p>As you noticed in the Change Data Capture settings, we just activate it per sObject. So we will get a notification per sObject, not only for the record we\u2019re viewing.<\/p>\r\n\r\n\r\n\r\n<p>Here I\u2019m just checking that modified record is the one we\u2019re viewing, and that it was modified by someone else.<\/p>\r\n\r\n\r\n<script src=\"https:\/\/gist.github.com\/a8f712323835e519fc45b8621273e31b.js\"><\/script>\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>line 45 to 51: error handling<\/li>\r\n<li>line 54: subscribing to the event<\/li>\r\n<\/ul>\r\n\r\n\r\n<script src=\"https:\/\/gist.github.com\/d89e8a7e0d298c85687d6089f4fce597.js\"><\/script>\n\r\n\r\n\r\n<p>As you can see, the code is pretty straightforward. Most of it comes from the documentation, I just had to link it to a record and write a callback method. Super easy!<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">What\u2019s next<\/h2>\r\n\r\n\r\n\r\n<p>If you take a look at the event received, you can see that it contains several interesting information:<\/p>\r\n\r\n\r\n<script src=\"https:\/\/gist.github.com\/4f38111d8e363369da56e36136ca650b.js\"><\/script>\n\r\n\r\n\r\n<p>This is just a demo component, but it could easily be updated to display more information from the event payload. Such as who modified the record, what was modified and when, or set a different message if the record was deleted.<\/p>\r\n\r\n\r\n\r\n<p>Technically, the page could even be refreshed to display the updated data. Even if from a UX perspective that would not be a great experience.<\/p>\r\n\r\n\r\n\r\n<p>I\u2019ve also heard at TrailheaDX about a pilot feature called Lightning Live Records that would do just that out of the box, pretty nifty!\u00a0:) Have a look to <a href=\"https:\/\/youtu.be\/ygfY38oJBZw\" target=\"_blank\" rel=\"noopener\">this session replay<\/a> if you\u2019re interested.<\/p>\r\n\r\n\r\n\r\n<p>If you have any questions or feedback about lightning:empApi, feel free to reach out to me in the comments or on Twitter: <a href=\"https:\/\/twitter.com\/FabienTaillon\" target=\"_blank\" rel=\"noopener\">@FabienTaillon<\/a>.<\/p>\r\n<p>Want to learn more? Check out our article about <a href=\"https:\/\/texei.com\/conseils\/day-10-salesforce-custom-notifications-texeiadventcalendar\/\" target=\"_blank\" rel=\"noopener\">Salesforce Custom Notifications<\/a>.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Winter \u201919 introduces a new component, lightning:empApi, that lets you easily receive streaming events directly in your Lightning Components. Another new feature that comes in Developer Preview in Winter \u201919 is Change Data Capture. What\u2019s best than doing a demo component to test these 2 new features? Change Data\u00a0Capture Change Data Capture is a really [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":2148,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[300],"tags":[],"class_list":["post-114","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-advices"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.1 (Yoast SEO v27.1.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Get live notifications when the record you\u2019re viewing gets modified - Texe\u00ef<\/title>\n<meta name=\"description\" content=\"Understand lightning:empApi and how to get live notifications, see some examples and learn how to make the best of it.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Get live notifications when the record you\u2019re viewing gets modified\" \/>\n<meta property=\"og:description\" content=\"Understand lightning:empApi and how to get live notifications, see some examples and learn how to make the best of it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/\" \/>\n<meta property=\"og:site_name\" content=\"Texe\u00ef\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-27T12:07:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-16T13:29:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_7XYAk-4a5NUvML7K01Hd_g.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"419\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Fabien Taillon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/\"},\"author\":{\"name\":\"Fabien Taillon\",\"@id\":\"https:\/\/texei.com\/#\/schema\/person\/082ce6d13635571cae4161f1d4f5a9a7\"},\"headline\":\"Get live notifications when the record you\u2019re viewing gets modified\",\"datePublished\":\"2018-08-27T12:07:43+00:00\",\"dateModified\":\"2023-08-16T13:29:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/\"},\"wordCount\":860,\"publisher\":{\"@id\":\"https:\/\/texei.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_7XYAk-4a5NUvML7K01Hd_g.png\",\"articleSection\":[\"Advices\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/\",\"url\":\"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/\",\"name\":\"Get live notifications when the record you\u2019re viewing gets modified - Texe\u00ef\",\"isPartOf\":{\"@id\":\"https:\/\/texei.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_7XYAk-4a5NUvML7K01Hd_g.png\",\"datePublished\":\"2018-08-27T12:07:43+00:00\",\"dateModified\":\"2023-08-16T13:29:34+00:00\",\"description\":\"Understand lightning:empApi and how to get live notifications, see some examples and learn how to make the best of it.\",\"breadcrumb\":{\"@id\":\"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/#primaryimage\",\"url\":\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_7XYAk-4a5NUvML7K01Hd_g.png\",\"contentUrl\":\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_7XYAk-4a5NUvML7K01Hd_g.png\",\"width\":800,\"height\":419},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/texei.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Advices\",\"item\":\"https:\/\/texei.com\/en\/category\/advices\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Get live notifications when the record you\u2019re viewing gets modified\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/texei.com\/#website\",\"url\":\"https:\/\/texei.com\/\",\"name\":\"Texe\u00ef\",\"description\":\"Turn your IT into Business\",\"publisher\":{\"@id\":\"https:\/\/texei.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/texei.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/texei.com\/#organization\",\"name\":\"Texe\u00ef\",\"url\":\"https:\/\/texei.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/texei.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/03\/logo-essai-1.jpg\",\"contentUrl\":\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/03\/logo-essai-1.jpg\",\"width\":2560,\"height\":1102,\"caption\":\"Texe\u00ef\"},\"image\":{\"@id\":\"https:\/\/texei.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/texei.com\/#\/schema\/person\/082ce6d13635571cae4161f1d4f5a9a7\",\"name\":\"Fabien Taillon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/texei.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2025\/12\/avatar_user_5_1766076207-96x96.png\",\"contentUrl\":\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2025\/12\/avatar_user_5_1766076207-96x96.png\",\"caption\":\"Fabien Taillon\"},\"url\":\"https:\/\/texei.com\/en\/author\/fabient\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Get live notifications when the record you\u2019re viewing gets modified - Texe\u00ef","description":"Understand lightning:empApi and how to get live notifications, see some examples and learn how to make the best of it.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/","og_locale":"en_US","og_type":"article","og_title":"Get live notifications when the record you\u2019re viewing gets modified","og_description":"Understand lightning:empApi and how to get live notifications, see some examples and learn how to make the best of it.","og_url":"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/","og_site_name":"Texe\u00ef","article_published_time":"2018-08-27T12:07:43+00:00","article_modified_time":"2023-08-16T13:29:34+00:00","og_image":[{"width":800,"height":419,"url":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_7XYAk-4a5NUvML7K01Hd_g.png","type":"image\/png"}],"author":"Fabien Taillon","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/#article","isPartOf":{"@id":"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/"},"author":{"name":"Fabien Taillon","@id":"https:\/\/texei.com\/#\/schema\/person\/082ce6d13635571cae4161f1d4f5a9a7"},"headline":"Get live notifications when the record you\u2019re viewing gets modified","datePublished":"2018-08-27T12:07:43+00:00","dateModified":"2023-08-16T13:29:34+00:00","mainEntityOfPage":{"@id":"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/"},"wordCount":860,"publisher":{"@id":"https:\/\/texei.com\/#organization"},"image":{"@id":"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/#primaryimage"},"thumbnailUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_7XYAk-4a5NUvML7K01Hd_g.png","articleSection":["Advices"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/","url":"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/","name":"Get live notifications when the record you\u2019re viewing gets modified - Texe\u00ef","isPartOf":{"@id":"https:\/\/texei.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/#primaryimage"},"image":{"@id":"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/#primaryimage"},"thumbnailUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_7XYAk-4a5NUvML7K01Hd_g.png","datePublished":"2018-08-27T12:07:43+00:00","dateModified":"2023-08-16T13:29:34+00:00","description":"Understand lightning:empApi and how to get live notifications, see some examples and learn how to make the best of it.","breadcrumb":{"@id":"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/#primaryimage","url":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_7XYAk-4a5NUvML7K01Hd_g.png","contentUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_7XYAk-4a5NUvML7K01Hd_g.png","width":800,"height":419},{"@type":"BreadcrumbList","@id":"https:\/\/texei.com\/en\/advices\/get-live-notifications-when-the-record-youre-viewing-gets-modified\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/texei.com\/"},{"@type":"ListItem","position":2,"name":"Advices","item":"https:\/\/texei.com\/en\/category\/advices\/"},{"@type":"ListItem","position":3,"name":"Get live notifications when the record you\u2019re viewing gets modified"}]},{"@type":"WebSite","@id":"https:\/\/texei.com\/#website","url":"https:\/\/texei.com\/","name":"Texe\u00ef","description":"Turn your IT into Business","publisher":{"@id":"https:\/\/texei.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/texei.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/texei.com\/#organization","name":"Texe\u00ef","url":"https:\/\/texei.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/texei.com\/#\/schema\/logo\/image\/","url":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/03\/logo-essai-1.jpg","contentUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/03\/logo-essai-1.jpg","width":2560,"height":1102,"caption":"Texe\u00ef"},"image":{"@id":"https:\/\/texei.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/texei.com\/#\/schema\/person\/082ce6d13635571cae4161f1d4f5a9a7","name":"Fabien Taillon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/texei.com\/#\/schema\/person\/image\/","url":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2025\/12\/avatar_user_5_1766076207-96x96.png","contentUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2025\/12\/avatar_user_5_1766076207-96x96.png","caption":"Fabien Taillon"},"url":"https:\/\/texei.com\/en\/author\/fabient\/"}]}},"_links":{"self":[{"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":0,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/posts\/114\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/media\/2148"}],"wp:attachment":[{"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/categories?post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/tags?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}