{"id":295,"date":"2020-08-14T08:06:42","date_gmt":"2020-08-14T08:06:42","guid":{"rendered":"http:\/\/4us2use.at\/?p=295"},"modified":"2020-08-14T08:10:13","modified_gmt":"2020-08-14T08:10:13","slug":"flow-update-people-field-with-multiple-selections-allowed","status":"publish","type":"post","link":"http:\/\/4us2use.at\/?p=295","title":{"rendered":"Flow: Update People field in SharePoint online with &#8220;multiple selections allowed&#8221;"},"content":{"rendered":"\n<p class=\"has-medium-font-size\"><strong>Problem:<\/strong><\/p>\n\n\n\n<p>When you create many workflow applications, you&#8217;ll learn, that most of them will use same data again like organization information, responsible persons etc. <br>So I started setting up a &#8220;Central Data&#8221; location with all relevant info as SharPoint lists. <br>Then I went to the different applications and created a &#8220;Get Centralized Data&#8221; Flow for each of them. <br>BUT&#8230; trying to update a SharePoint People field, that has the setting &#8220;multiple selections allowed&#8221; turned out to be a pain. You can&#8217;t just use the dynamic value from the central list, even the fields were configured identically. <\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Solution:<\/strong><\/p>\n\n\n\n<p>Put the person&#8217;s claims into an array variable, but don&#8217;t use &#8220;claims&#8221; but &#8220;Email&#8221; value (yes, it&#8217;s confusing ;-))<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"632\" height=\"327\" src=\"http:\/\/4us2use.at\/wp-content\/uploads\/2020\/08\/UserClaimsArray.png\" alt=\"\" class=\"wp-image-296\" srcset=\"http:\/\/4us2use.at\/wp-content\/uploads\/2020\/08\/UserClaimsArray.png 632w, http:\/\/4us2use.at\/wp-content\/uploads\/2020\/08\/UserClaimsArray-300x155.png 300w\" sizes=\"(max-width: 632px) 100vw, 632px\" \/><\/figure>\n\n\n\n<span id=\"post-ratings-295\" class=\"post-ratings\" data-nonce=\"d4a7f911dd\"><img id=\"rating_295_1\" src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_off.gif\" alt=\"1 Star\" title=\"1 Star\" onmouseover=\"current_rating(295, 1, '1 Star');\" onmouseout=\"ratings_off(0, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img id=\"rating_295_2\" src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_off.gif\" alt=\"2 Stars\" title=\"2 Stars\" onmouseover=\"current_rating(295, 2, '2 Stars');\" onmouseout=\"ratings_off(0, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img id=\"rating_295_3\" src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_off.gif\" alt=\"3 Stars\" title=\"3 Stars\" onmouseover=\"current_rating(295, 3, '3 Stars');\" onmouseout=\"ratings_off(0, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img id=\"rating_295_4\" src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_off.gif\" alt=\"4 Stars\" title=\"4 Stars\" onmouseover=\"current_rating(295, 4, '4 Stars');\" onmouseout=\"ratings_off(0, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img id=\"rating_295_5\" src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_off.gif\" alt=\"5 Stars\" title=\"5 Stars\" onmouseover=\"current_rating(295, 5, '5 Stars');\" onmouseout=\"ratings_off(0, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/> (No Ratings Yet)<br \/><span class=\"post-ratings-text\" id=\"ratings_295_text\"><\/span><\/span><span id=\"post-ratings-295-loading\" class=\"post-ratings-loading\"><img src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/loading.gif\" width=\"16\" height=\"16\" class=\"post-ratings-image\" \/>Loading...<\/span>\n","protected":false},"excerpt":{"rendered":"<p>Problem: When you create many workflow applications, you&#8217;ll learn, that most of them will use same data again like organization information, responsible persons etc. So I started setting up a &#8220;Central Data&#8221; location with all relevant info as SharPoint lists. Then I went to the different applications and created a &#8220;Get Centralized Data&#8221; Flow for &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/4us2use.at\/?p=295\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Flow: Update People field in SharePoint online with &#8220;multiple selections allowed&#8221;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11,4,6],"tags":[],"_links":{"self":[{"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/posts\/295"}],"collection":[{"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4us2use.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=295"}],"version-history":[{"count":4,"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/posts\/295\/revisions"}],"predecessor-version":[{"id":301,"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/posts\/295\/revisions\/301"}],"wp:attachment":[{"href":"http:\/\/4us2use.at\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4us2use.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=295"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4us2use.at\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}