Using a WorkflowInitiationForm in an VisualStudio workflow for SharePoint 2013 I wonder how to get the Information from people picker. Adding to the project the form delivers code examples for string, integer and datetime, but not for the used people picker.

Is it something like

params['users'] = document.getElementById("ctl00_PlaceHolderMain_???PeoplePicker???").value;

to pass the value(s) to the startWorkflow() parameters?

useful links:


You can find the People picker control id using browser developer tools.

Use below code to get the user login

var pickerElement = document.getElementById("pickerid");
params['user'] = pickerElement.getAttribute("key");
  • hmh, retrieves null in my case !? – Celophysis Nov 10 '14 at 8:10
  • @Celophysis have you modified the pickerid to match your picker control id? – Amal Hashim Nov 10 '14 at 12:50
  • yes, I've modified it - should it work without a executeQueryAsync? – Celophysis Nov 11 '14 at 16:22
  • No you need executeQuery.. Can you post the complete code? – Amal Hashim Nov 11 '14 at 16:45
  • I turned over to use msdn.microsoft.com/en-us/library/office/… - this works for me – Celophysis Nov 12 '14 at 16:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.