Pulling the Approver(s) via REST call brings me the data I want, but am not having success populating a SharePoint People Picker control with the results.
if (data.d.Approvers != undefined) {
var xUser = data.d.Approvers.Name;
var ppTitle = "Approvers";
var ppDiv = $("[id$='ClientPeoplePicker'][title=' + ppTitle + ']");
var ppEditor = ppDiv.find("[title=' + ppTitle + ']");
//var spPP = SPClientPeoplePicker.SPClientPeoplePickerDict[ppDiv[0].id];
ppEditor.val(xUser);
//spPP.AddUnresolvedUserFromEditor(true);}
The first few characters of the identity (example: i:0#.f|membership|[email protected]) is displayed in the control, but it does not resolve. The resolve functionality simply makes the result disappear altogether.
I've gone through available posts on this subject, here and elsewhere. This is the closest I've been able to get. Any suggestions are welcome.