{"id":183,"date":"2020-12-18T12:18:28","date_gmt":"2020-12-18T11:18:28","guid":{"rendered":"https:\/\/transferttexei.wordpress.com\/2021\/08\/11\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/"},"modified":"2023-08-15T17:32:41","modified_gmt":"2023-08-15T15:32:41","slug":"day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar","status":"publish","type":"post","link":"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/","title":{"rendered":"Day 18: Send Custom Notifications from Apex in Winter 21&#8242; #TexeiAdventCalendar"},"content":{"rendered":"\r\n<p>Hello everyone, hope you\u2019re having a blast with our #TexeiAdventCalendar articles. This article follows the one written by <a href=\"https:\/\/medium.com\/@maher.ajamane\" target=\"_blank\" rel=\"noopener\">Maher Ajamane<\/a> a few days ago about <a href=\"https:\/\/blog.texei.com\/day-10-salesforce-custom-notifications-texeiadventcalendar-9604b5210d4c\" target=\"_blank\" rel=\"noopener\">custom notifications<\/a>, to present how to send one using Apex in the Winter 21&#8242; release. I hope you had a great time yesterday with <a href=\"https:\/\/medium.com\/@jorge.centeno\" target=\"_blank\" rel=\"noopener\">Jorge Centeno<\/a>\u2019s article, in case you missed it, you can find it <a href=\"https:\/\/blog.texei.com\/day-17-analyze-your-lightning-page-performance-1b8329c88cd2\" target=\"_blank\" rel=\"noopener\">here<\/a> to see how to analyse your Lightning pages performances.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"66\" height=\"80\" class=\"wp-image-2302\" src=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_4ZjxNdyGV7o4pCPN6EAZDg.png\" alt=\"\" \/><\/figure>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">What are custom notifications?<\/h2>\r\n\r\n\r\n\r\n<p><a href=\"https:\/\/help.salesforce.com\/articleView?id=notif_builder.htm&amp;type=5\" target=\"_blank\" rel=\"noopener\">Custom notifications<\/a> are a way to convey information inside Salesforce by sending notifications to users with a short message (that can be linked to a record) which can be accessed in the small bell on the top right corner of the interface.<\/p>\r\n\r\n\r\n\r\n<p>To send a custom notification, you first need to <a href=\"https:\/\/help.salesforce.com\/articleView?id=notif_builder_custom_type.htm&amp;type=5\" target=\"_blank\" rel=\"noopener\">define a custom notification type<\/a> in the setup (in Notification Builder -&gt; Custom Notifications).<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full wp-caption\"><img fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"256\" class=\"wp-image-2301\" src=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_lmf9w864X1vNJC41iLp6LQ.png\" alt=\"\" srcset=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_lmf9w864X1vNJC41iLp6LQ-200x64.png 200w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_lmf9w864X1vNJC41iLp6LQ-300x96.png 300w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_lmf9w864X1vNJC41iLp6LQ-400x128.png 400w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_lmf9w864X1vNJC41iLp6LQ-600x192.png 600w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_lmf9w864X1vNJC41iLp6LQ-768x246.png 768w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_lmf9w864X1vNJC41iLp6LQ.png 800w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\r\n<figcaption>A custom notification type is mandatory to send custom notification in any way (Apex, Process builder\u2026)<\/figcaption>\r\n<\/figure>\r\n\r\n\r\n\r\n<p>Then, the custom notifications can be sent using the defined type. Custom notifications can be sent using <a href=\"https:\/\/help.salesforce.com\/articleView?id=notif_builder_custom_process.htm&amp;type=5\" target=\"_blank\" rel=\"noopener\">Process builder<\/a>, <a href=\"https:\/\/help.salesforce.com\/articleView?id=notif_builder_custom_other.htm&amp;type=5\" target=\"_blank\" rel=\"noopener\">Flows or APIs<\/a>. <a href=\"https:\/\/medium.com\/@maher.ajamane\" target=\"_blank\" rel=\"noopener\">Maher Ajamane<\/a> made a great article about the way to send custom notifications in this very same #TexeiAdventCalendar, that you can find <a href=\"https:\/\/blog.texei.com\/day-10-salesforce-custom-notifications-texeiadventcalendar-9604b5210d4c\" target=\"_blank\" rel=\"noopener\">here<\/a>. Winter 21&#8242; release came with a new way to <a href=\"https:\/\/releasenotes.docs.salesforce.com\/en-us\/winter21\/release-notes\/rn_apex_send_custom_notifications_from_apex.htm?edition=&amp;impact=\" target=\"_blank\" rel=\"noopener\">send notifications in Apex<\/a>. Let\u2019s see how it goes.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">How to send custom notifications using\u00a0Apex?<\/h2>\r\n\r\n\r\n\r\n<p>Let\u2019s consider, for the sake of a use case, that you want to be notified whenever one of your account\u2019s name has been changed (#dontmesswithmydata). It can be set in a trigger, and after checking that the Name has indeed been modified. We can set the code to send the notification. You would first need to set up the Custom notification type as explained before, then you\u2019re good to go.<\/p>\r\n\r\n\r\n\r\n<p>Here is an example of how it could work, based on the <a href=\"https:\/\/developer.salesforce.com\/docs\/atlas.en-us.apexcode.meta\/apexcode\/apex_class_Messaging_CustomNotification.htm\" target=\"_blank\" rel=\"noopener\">documentation<\/a>.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>\/\/ Get the Id for our custom notification type<br \/>CustomNotificationType notificationType = [SELECT Id, DeveloperName <br \/>                                        FROM CustomNotificationType <br \/>                                WHERE DeveloperName='Winter21test'];<br \/><br \/>\/\/ Create a new custom notification<br \/>Messaging.CustomNotification n = new Messaging.CustomNotification();<br \/><br \/>\/\/ Set the contents for the notification<br \/>notification.setTitle('Account name changed');<br \/>notification.setBody('The name of this account has been changed');<br \/><br \/>\/\/ Set the notification type and target<br \/>notification.setNotificationTypeId(notificationType.Id);<br \/>notification.setTargetId(acc.Id);<br \/><br \/>Set&lt;String&gt; addressee = new Set&lt;String&gt;();<br \/>addressee.add(acc.OwnerId);<br \/><br \/>\/\/ Actually send the notification<br \/>try {<br \/>    notification.send(addressee);<br \/>}<br \/>catch (Exception e) {<br \/>    System.debug('Problem sending notification: ' + e.getMessage());<br \/>}<\/code><\/pre>\r\n\r\n\r\n\r\n<p>The first part aims to retrieve the custom notification type associated with the notification. Then, we use the new class <code>CustomNotification<\/code> to create our notification, that we then fill with the appropriate <code>title<\/code>, <code>body<\/code>, and <code>target<\/code> (this last allows redirection to a record when one click on the notification). Finally, the method <code>send()<\/code> takes in parameter a set of user ids to which the notification will be sent. Now if we try to change an account name, its owner will get the following in the top right corner:<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full wp-caption\"><img decoding=\"async\" width=\"800\" height=\"366\" class=\"wp-image-2299\" src=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_RjlzOXV4JNYNkEClvsv9Sw.png\" alt=\"\" srcset=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_RjlzOXV4JNYNkEClvsv9Sw-200x92.png 200w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_RjlzOXV4JNYNkEClvsv9Sw-300x137.png 300w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_RjlzOXV4JNYNkEClvsv9Sw-400x183.png 400w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_RjlzOXV4JNYNkEClvsv9Sw-600x275.png 600w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_RjlzOXV4JNYNkEClvsv9Sw-768x351.png 768w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_RjlzOXV4JNYNkEClvsv9Sw.png 800w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\r\n<figcaption>Custom notification sent from a\u00a0trigger<\/figcaption>\r\n<\/figure>\r\n\r\n\r\n\r\n<p>This new feature allows a more flexible use of custom notifications, that you can send directly in trigger methods. But also in LWC controllers, for instance, which leaves only your imagination as a limit !<\/p>\r\n\r\n\r\n\r\n<p>That\u2019s it for the new custom notifications class. Hope you had a good read, and come back tomorrow for a <a href=\"https:\/\/texei.com\/conseils\/day-19-new-undo-link-on-the-delete-record-toast-texeiadventcalendar\/\" target=\"_blank\" rel=\"noopener\">new article<\/a> written by <a href=\"https:\/\/medium.com\/@FabienHuot\" target=\"_blank\" rel=\"noopener\">Fabien Huot<\/a>.<\/p>\r\n\r\n\r\n\r\n<p>Follow us on LinkedIn <a href=\"https:\/\/fr.linkedin.com\/company\/texei\" target=\"_blank\" rel=\"noopener\">here<\/a> and on Twitter <a href=\"https:\/\/twitter.com\/TexeiFrance?s=20\" target=\"_blank\" rel=\"noopener\">here<\/a>. Have a great day!<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Hello everyone, hope you\u2019re having a blast with our #TexeiAdventCalendar articles. This article follows the one written by Maher Ajamane a few days ago about custom notifications, to present how to send one using Apex in the Winter 21&#8242; release. I hope you had a great time yesterday with Jorge Centeno\u2019s article, in case you [&hellip;]<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[300],"tags":[306],"class_list":["post-183","post","type-post","status-publish","format-standard","hentry","category-advices","tag-apex-en"],"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>Day 18: Send Custom Notifications from Apex in Winter 21&#039; #TexeiAdventCalendar - Texe\u00ef<\/title>\n<meta name=\"description\" content=\"Learn how to send custom notifications using Apex in Winter &#039;21 release. Convey important information to users through short messages.\" \/>\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\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Day 18: Send Custom Notifications from Apex in Winter 21&#039; #TexeiAdventCalendar\" \/>\n<meta property=\"og:description\" content=\"Learn how to send custom notifications using Apex in Winter &#039;21 release. Convey important information to users through short messages.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/\" \/>\n<meta property=\"og:site_name\" content=\"Texe\u00ef\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-18T11:18:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-15T15:32:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2020\/12\/Sans-titre-16-1024x576.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Loic Nicolas\" \/>\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\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/\"},\"author\":{\"name\":\"Loic Nicolas\",\"@id\":\"https:\/\/texei.com\/#\/schema\/person\/32d30458389e87b451b28c5a2822fff6\"},\"headline\":\"Day 18: Send Custom Notifications from Apex in Winter 21&#8242; #TexeiAdventCalendar\",\"datePublished\":\"2020-12-18T11:18:28+00:00\",\"dateModified\":\"2023-08-15T15:32:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/\"},\"wordCount\":486,\"publisher\":{\"@id\":\"https:\/\/texei.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_4ZjxNdyGV7o4pCPN6EAZDg.png\",\"keywords\":[\"Apex\"],\"articleSection\":[\"Advices\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/\",\"url\":\"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/\",\"name\":\"Day 18: Send Custom Notifications from Apex in Winter 21' #TexeiAdventCalendar - Texe\u00ef\",\"isPartOf\":{\"@id\":\"https:\/\/texei.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_4ZjxNdyGV7o4pCPN6EAZDg.png\",\"datePublished\":\"2020-12-18T11:18:28+00:00\",\"dateModified\":\"2023-08-15T15:32:41+00:00\",\"description\":\"Learn how to send custom notifications using Apex in Winter '21 release. Convey important information to users through short messages.\",\"breadcrumb\":{\"@id\":\"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/#primaryimage\",\"url\":\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_4ZjxNdyGV7o4pCPN6EAZDg.png\",\"contentUrl\":\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_4ZjxNdyGV7o4pCPN6EAZDg.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/#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\":\"Day 18: Send Custom Notifications from Apex in Winter 21&prime; #TexeiAdventCalendar\"}]},{\"@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\/32d30458389e87b451b28c5a2822fff6\",\"name\":\"Loic Nicolas\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/texei.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2023\/07\/avatar_user_14_1690808344-96x96.png\",\"contentUrl\":\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2023\/07\/avatar_user_14_1690808344-96x96.png\",\"caption\":\"Loic Nicolas\"},\"url\":\"https:\/\/texei.com\/en\/author\/loicnicolas\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Day 18: Send Custom Notifications from Apex in Winter 21' #TexeiAdventCalendar - Texe\u00ef","description":"Learn how to send custom notifications using Apex in Winter '21 release. Convey important information to users through short messages.","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\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/","og_locale":"en_US","og_type":"article","og_title":"Day 18: Send Custom Notifications from Apex in Winter 21' #TexeiAdventCalendar","og_description":"Learn how to send custom notifications using Apex in Winter '21 release. Convey important information to users through short messages.","og_url":"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/","og_site_name":"Texe\u00ef","article_published_time":"2020-12-18T11:18:28+00:00","article_modified_time":"2023-08-15T15:32:41+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2020\/12\/Sans-titre-16-1024x576.png","type":"image\/png"}],"author":"Loic Nicolas","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/#article","isPartOf":{"@id":"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/"},"author":{"name":"Loic Nicolas","@id":"https:\/\/texei.com\/#\/schema\/person\/32d30458389e87b451b28c5a2822fff6"},"headline":"Day 18: Send Custom Notifications from Apex in Winter 21&#8242; #TexeiAdventCalendar","datePublished":"2020-12-18T11:18:28+00:00","dateModified":"2023-08-15T15:32:41+00:00","mainEntityOfPage":{"@id":"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/"},"wordCount":486,"publisher":{"@id":"https:\/\/texei.com\/#organization"},"image":{"@id":"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/#primaryimage"},"thumbnailUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_4ZjxNdyGV7o4pCPN6EAZDg.png","keywords":["Apex"],"articleSection":["Advices"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/","url":"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/","name":"Day 18: Send Custom Notifications from Apex in Winter 21' #TexeiAdventCalendar - Texe\u00ef","isPartOf":{"@id":"https:\/\/texei.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/#primaryimage"},"image":{"@id":"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/#primaryimage"},"thumbnailUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_4ZjxNdyGV7o4pCPN6EAZDg.png","datePublished":"2020-12-18T11:18:28+00:00","dateModified":"2023-08-15T15:32:41+00:00","description":"Learn how to send custom notifications using Apex in Winter '21 release. Convey important information to users through short messages.","breadcrumb":{"@id":"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/#primaryimage","url":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_4ZjxNdyGV7o4pCPN6EAZDg.png","contentUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/08\/1_4ZjxNdyGV7o4pCPN6EAZDg.png"},{"@type":"BreadcrumbList","@id":"https:\/\/texei.com\/en\/advices\/day-18-send-custom-notifications-from-apex-in-winter-21-texeiadventcalendar\/#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":"Day 18: Send Custom Notifications from Apex in Winter 21&prime; #TexeiAdventCalendar"}]},{"@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\/32d30458389e87b451b28c5a2822fff6","name":"Loic Nicolas","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/texei.com\/#\/schema\/person\/image\/","url":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2023\/07\/avatar_user_14_1690808344-96x96.png","contentUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2023\/07\/avatar_user_14_1690808344-96x96.png","caption":"Loic Nicolas"},"url":"https:\/\/texei.com\/en\/author\/loicnicolas\/"}]}},"_links":{"self":[{"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/posts\/183","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\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/comments?post=183"}],"version-history":[{"count":0,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/posts\/183\/revisions"}],"wp:attachment":[{"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/media?parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/categories?post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/tags?post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}