Con risposta Submit Multiple Users to sharepoint list

  • 2012年8月2日 0:55
     
     

    Hey Guys,

    I have a form that submits a variety of data to a Share point Library via a CAML query. I have been requested to add a field that can hold multiple users.

    I have created the mult-user column in the SharePoint Library and can successfully submit users to it with the following syntax:

    ID;#username;#ID;#username;#ID;#username

    The problem I am having is within my InfoPath form is getting these ID's for each of the inputted users and formatting to the above syntax.

    I have a person picker that allows multiple selections and can only select people. I also have a data connection to the User Information List of SharePoint that returns users and ID's for each user. Normally I can just query for an individual user and to get the relevant ID but this is proving trickier with the multi users.

    Does anyone have another method for getting these ID's for each of the users in the person picker and then formatting it to the syntax mentioned above?
    Unfortunately since this a web enabled form I am limited to the code I can use for the form.

    I appreciate any assistance anyone can give.

全部回复