{"id":1402,"date":"2018-02-07T20:25:14","date_gmt":"2018-02-08T04:25:14","guid":{"rendered":"https:\/\/officedevblogs.wpengine.com\/?p=1402"},"modified":"2018-02-07T20:25:14","modified_gmt":"2018-02-08T04:25:14","slug":"sending-a-reminder-for-a-kaizala-action","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/sending-a-reminder-for-a-kaizala-action\/","title":{"rendered":"Sending a reminder for a Kaizala action"},"content":{"rendered":"<p>Many times we maywant to send reminder for a particular action, listing some of them below:<\/p>\n<ol>\n<li>Sending a daily reminder for an ongoing survey<\/li>\n<li>In a public group, sending an existing poll \/ survey \/ action to a subscriber who has just joined the group<\/li>\n<\/ol>\n<p>All these can be achieved by sending a reminder to the action (poll, survey, custom action, etc.).<\/p>\n<h2>Kaizala API<\/h2>\n<p>Below is the API for sending a reminder:<\/p>\n<table width=\"476\">\n<tbody>\n<tr>\n<td width=\"173\"><strong>Method<\/strong><\/td>\n<td width=\"303\">POST<\/td>\n<\/tr>\n<tr>\n<td width=\"173\"><strong>URL<\/strong><\/td>\n<td width=\"303\"><strong>{{endpoint-url}}<\/strong>\/v1\/groups\/<strong>{{group-id}}<\/strong>\/actions\/<strong>{{actionId}}<\/strong>\/reminder<\/td>\n<\/tr>\n<tr>\n<td width=\"173\"><strong>Request Headers<\/strong><\/td>\n<td width=\"303\"><\/td>\n<\/tr>\n<tr>\n<td width=\"173\"><strong>acessToken<\/strong><\/td>\n<td width=\"303\">{{access-token}}<\/td>\n<\/tr>\n<tr>\n<td width=\"173\"><strong>Content-Type<\/strong><\/td>\n<td width=\"303\">application\/json<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"5\" width=\"173\"><strong>Request Body<\/strong><\/td>\n<td rowspan=\"5\" width=\"303\">{\n\u201csubscribers\u201d:[\u201c+9123454444\u201d],\n\u201csendToAllSubscribers\u201d:true\n}<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Note:<\/h2>\n<ul>\n<li>Elements in curly \/ squiggly\u00a0brackets need to be replaced\n<ul>\n<li><strong>endpoint-url<\/strong>\u00a0is present in the response to generate accessToken call.<\/li>\n<li><strong>group-id<\/strong>\u00a0is the id of the Group on which you want to send the reminder.<\/li>\n<li><strong>action-id<\/strong>\u00a0is the id of the action (<em>survey \/ poll \/ custom action, etc.<\/em>) that you have sent.\u00a0<em>While sending an action, you get an actionId and responseId<\/em>\u00a0(the following screenshot shows the one to choose).\n<img decoding=\"async\" class=\"alignnone size-full wp-image-1403\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/06\/action-id.png\" alt=\"action id to select\" width=\"396\" height=\"60\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/06\/action-id.png 396w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/06\/action-id-300x45.png 300w\" sizes=\"(max-width: 396px) 100vw, 396px\" \/><\/li>\n<li><strong>access-token<\/strong>\u00a0is required for authentication. If you are not familiar, please refer to the previous blog\u00a0<strong>Getting started with Kaizala APIs<\/strong>.<\/li>\n<li><strong>mobile-number<\/strong>\u00a0is the number of the subscriber to whom the message is targeted.<\/li>\n<\/ul>\n<\/li>\n<li>The Request Body is required only if you want to send the reminder directed to select subscriber(s) in which case:\n<ul>\n<li>Make sure the\u00a0<em><strong>sendToAllSubscribers<\/strong>\u00a0<\/em>field is set to false if its targeted to a subscriber.<\/li>\n<li>The subscribers field is an array, so you can input a comma separated list of numbers to which the message is intended.<\/li>\n<li>If the subscribers array has a number that is not a subscriber, the request would fail.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Thank you for reading, hope it was helpful. If you have any comments \/ feedback please let me know by commenting on this post.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This blog discusses how to send reminder for a particular action, such as sending a daily reminder for an ongoing survey, or, in a public group, sending an existing poll \/ survey \/ action to a subscriber who has just joined the group. These can be achieved by sending a reminder to the action (poll, survey, custom action, etc.).<\/p>\n","protected":false},"author":69216,"featured_media":25159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11],"tags":[87],"class_list":["post-1402","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office-add-ins","tag-kaizala"],"acf":[],"blog_post_summary":"<p>This blog discusses how to send reminder for a particular action, such as sending a daily reminder for an ongoing survey, or, in a public group, sending an existing poll \/ survey \/ action to a subscriber who has just joined the group. These can be achieved by sending a reminder to the action (poll, survey, custom action, etc.).<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/1402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69216"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=1402"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/1402\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/25159"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=1402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=1402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=1402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}