{"id":1665,"date":"2016-06-28T09:22:44","date_gmt":"2016-06-28T07:22:44","guid":{"rendered":"https:\/\/blog.kodono.info\/wordpress\/?p=1665"},"modified":"2016-06-28T09:22:44","modified_gmt":"2016-06-28T07:22:44","slug":"send-an-email-to-several-recipients-from-a-string-in-a-workflow-sharepoint-2013","status":"publish","type":"post","link":"https:\/\/blog.kodono.info\/wordpress\/2016\/06\/28\/send-an-email-to-several-recipients-from-a-string-in-a-workflow-sharepoint-2013\/","title":{"rendered":"Send an email to several recipients from a String in a workflow [Sharepoint 2013]"},"content":{"rendered":"<p>I found the case in which I have to send 1 email to several recipients. I have the names stored into a Sharepoint list.<\/p>\n<p>Using REST API and a call into my Workflow I&#8217;ve been able to get a list of login names (using <code>$expand=MyUserField<\/code> and <code>$select=MyUserField\/Name<\/code>), then you just need to concatenate them separate by <code>;<\/code>.<\/p>\n<p>At the end you should have a string that looks like <code>domain\\login_name1;domain\\login_name2;domain\\login_name3;<\/code> into yout <em>To<\/em> field for the email.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found the case in which I have to send 1 email to several recipients. I have the names stored into a Sharepoint list. Using REST API and a call into my Workflow I&#8217;ve been able to get a list of login names (using $expand=MyUserField and $select=MyUserField\/Name), then you just need to concatenate them separate [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","hide_page_title":"","footnotes":""},"categories":[15,170,13],"tags":[171,153,152,166,121],"class_list":["post-1665","post","type-post","status-publish","format-standard","hentry","category-astuce","category-english","category-niveau-intermediaire","tag-anglais","tag-astuce","tag-niveau-intermediaire","tag-sharepoint-2013","tag-workflow"],"_links":{"self":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/1665","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/comments?post=1665"}],"version-history":[{"count":2,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/1665\/revisions"}],"predecessor-version":[{"id":1667,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/1665\/revisions\/1667"}],"wp:attachment":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/media?parent=1665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/categories?post=1665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/tags?post=1665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}