Sharepoint 2016 form with three PeoplePickers that each allow multiples within their respective field

I’m following this tutorial on how to setup a PeoplePicker and send the selected values via API. https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/use-the-client-side-people-picker-control-in-sharepoint-hosted-sharepoint-add-in

My question revolves around a form that has 3 PeoplePickers on it. (Mgr, 2nd Mgr, and Assistant). The part of the tutorial that is confusing me is this section:

// Get the people picker object from the page.     var peoplePicker = this.SPClientPeoplePicker.SPClientPeoplePickerDict.peoplePickerDiv_TopSpan;   

Since I have three different people pickers, how do I keep track of which People Picker has which person selected? Do I define three different PeoplePickers in that section of code? Something like:

// Get the people picker object from the page.     var peoplePicker1 = this.SPClientPeoplePicker.SPClientPeoplePickerDict.peoplePickerDiv1_TopSpan;     var peoplePicker2 = this.SPClientPeoplePicker.SPClientPeoplePickerDict.peoplePickerDiv2_TopSpan;     var peoplePicker3 = this.SPClientPeoplePicker.SPClientPeoplePickerDict.peoplePickerDiv3_TopSpan; 

That just doesn’t seem right.. especially because of this code a few lines later…

// Get information about all users.     var users = peoplePicker.GetAllUserInfo();     var userInfo = '';     for (var i = 0; i < users.length; i++) {         var user = users[i];         for (var userProperty in user) {              userInfo += userProperty + ':  ' + user[userProperty] + '<br>';         }     }     $  ('#resolvedUsers').html(userInfo); 

I appreciate any help suggestions on how to tackle a form with three peoplepickers on it.

Confirm your ranking on Google within 21 days for $99

Are you looking for a real SEO service for your website? don’t worry, This service doesn’t waste your time, effort and money. This service provides real results. So, Order me to get your website on Google 1st page. Note: I’m just making back links and working off pages. Service: 1. Your order will be-delivered on time. 2. 100% Quality Back links 3. Guaranteed Results. 4. can guarantee the safety and improvements. 5. focus on the quality of each back link. 6. All post are Informative & natural. 7. 100%Organic traffic. 8. Professional service for specific niche. 9. full report in excel sheet. 10. I will provide 200 links. Thank you.

by: azmnasar0
Created: —
Category: Local SEO
Viewed: 487


I can do any photoshop work within 24 hours for $10

Hello every one! I’m Hieu. I’m a graphic designer and video editor with over 5 years of experience. I am a creative, reputable, responsible and punctual person. I’m here to help you with any work related to Photoshop. Here in this gig, I can: Correct Colour, contrast and brightness Repair your Photo, Image Cut out Remove objects or people from the frame Composite images together And more YOU WILL NOT HAVE TO PAY ME IF YOU ARE NOT SATISFIED WITH MY SERVICE! Please contact me before ordering! Kind regards, Le Hieu

by: HieuLe
Created: —
Category: Graphics & Logos
Viewed: 557


I can help you to do any photoshop work within 24 hours for $10

Hello every one! I’m Hieu. I’m a graphic designer and video editor with over 5 years of experience. I’m here to help you with any work related to Photoshop. I am a creative, reputable, responsible and punctual person. Here in this gig, I can: Correct Colour, contrast and brightness Repair your Photo, Image Cut out Remove objects or people from the frame Composite images together And more YOU WILL NOT HAVE TO PAY ME IF YOU ARE NOT SATISFIED WITH MY SERVICE! Please contact me before ordering. Kind regards, Le Hieu

by: HieuLe
Created: —
Category: Graphics & Logos
Viewed: 410


How to post to external api within a SharePoint event receiver

I currently have a working eventReceiver for when an item is updated. It adds some values into fields on the item. no problem.

However, when I add the part I actually need (posting those values somewhere else) it breaks. I simply need to pass those two fields to a remote end point. If I remove that internal try catch which does the post, it all works fine and my fields update.

Any ideas?

Is this even allowed in an event receiver, is there a better way to do this?

using System; using System.Security.Permissions; using Microsoft.SharePoint; using Microsoft.SharePoint.Utilities; using Microsoft.SharePoint.Workflow; using System.Net; using System.Collections.Specialized; using System.Text; namespace DocumentLibrary.BRCS_EventReceiver { /// <summary> /// List Item Events /// </summary> public class BRCS_EventReceiver : SPItemEventReceiver {     /// <summary>     /// An item was added.     /// </summary>     public override void ItemAdded(SPItemEventProperties properties)     {         base.ItemAdded(properties);     }      /// <summary>     /// An item was updated.     /// </summary>     ///      public override void ItemUpdated(SPItemEventProperties properties)     {          base.ItemUpdated(properties);         string fullDocPath = "";         string fullDocID = "";         string responsebody = "hello";         try         {             using (SPWeb web = properties.OpenWeb())             {                 SPListItem currentItem = properties.ListItem;                 string currentSiteURL = properties.ListItem.Web.Site.Url;                 fullDocPath = currentSiteURL + "/" + currentItem.Url;                 fullDocID = properties.ListItemId.ToString();                 currentItem["MajorCategory"] = fullDocPath;                  currentItem["MinorCategory"] = "id: " + fullDocID;                 try                 {                     using (var client = new WebClient())                     {                         NameValueCollection values = new NameValueCollection();                         values["thing1"] = "hello";                         values["thing2"] = "world";                          var response = client.UploadValues("https://postman-echo.com/post", values);                          responsebody = "done" + Encoding.Default.GetString(response);                     }                 }                 catch (Exception abc) {                     throw abc;                 }                 currentItem["MajorCategoryConfidence"] = responsebody;                 currentItem.Update();              }         }         catch (Exception ex)         {             System.Diagnostics.Debug.WriteLine("error{0}", ex.Message);             System.IO.File.WriteAllText("C:\Temp\ErrorLogBT.txt", ex.Message);             throw ex;         }     }   } 

}

Diractories creator 1000 back links within 5 hours for $3

Are you looking for a real SEO service for your websites & links that you have? Do not need to pay thousands of dollars to an SEO agency. This service doesn’t waste your time, effort and money. This service provides real results. We understand that you need TOP rankings for your target keywords. Many clients reach page 1 or increasing in ranking position.

by: Vipinmt
Created: —
Category: Directory Submission
Viewed: 268


How do I refresh the file cache after a change from within Windows

I’m using Ubuntu on Windows. I find it extremly convinient that I can drag files from the Windows desktop to a Ubuntu folder.

However, it requires several restarts of Ubuntu or a long time period until Ubuntu refresh the files until I have view them in Ubuntu, for example by using “ls -la”..

How could I force Ubuntu to refresh the file cache so that it recognizes the file changes?

Thank you!

Is there a dedicated place within RPG SE for users to post source codes or helpful spreadsheets that they made/use to share the love to other users? [migrated]

I play a summoning focused druid in my 3.5e campaign and handling multiple summons and math on the fly with all the augments got tiresome – I couldn’t find a helpful sheet for animal/creature templates, so I decided to try to make one (.NET, C#). It’s a work in progress, but I want to share the source code when/if it’s workable and/or “finished.”

So, rpg friends, is there a dedicated place for this? Where do I look when I want to do some looking, and/or where do I throw my links/sheets when I want to share the love? If I see there’s a preference among the community for prefer sheets instead of source code, I’d shift my work towards getting it into a sheets format.

Screenshot for the idea of the program/progress

enter image description here