Stump the Panel Topic: Update "person or group" field with SPD workflow. http://www.endusersharepoint.com/STP/ Paul Grenier, Lead Moderator en Sat, 04 Apr 2009 08:45:15 +0000 laura67 on "Update "person or group" field with SPD workflow." http://www.endusersharepoint.com/STP/topic/update-person-or-group-field-with-spd-workflow#post-5125 Thu, 12 Mar 2009 17:48:39 +0000 laura67 5125@http://www.endusersharepoint.com/STP/ <p>You're right about the bug. I had called Microsoft at some point about my workflow errors, and they ended up telling me that I was getting errors because we had installed the December cumulative. "It's no good" is what they had to say. They told me that February would fix it. Thanks, Microsoft.</p> <p>Laura Rogers </p> kkirkpat on "Update "person or group" field with SPD workflow." http://www.endusersharepoint.com/STP/topic/update-person-or-group-field-with-spd-workflow#post-5123 Thu, 12 Mar 2009 17:43:32 +0000 kkirkpat 5123@http://www.endusersharepoint.com/STP/ <p>This is a known issue for Sharepoint that was supposedly fixed in the February Patches.</p> <p>Try this workaround... Create a "single line text" variable in the workflow, and assign it "-1;#{AssignedToVariable}. This will basically generate "-1;#domain/user", and if you assign that to the person/group field it will work.</p> <p>This solutions was posted in the Nintex Workflow forums, but should be applicable for regular SPD workflows as well. <a href="http://connect.nintex.com/forums/post/1826.aspx." rel="nofollow">http://connect.nintex.com/forums/post/1826.aspx.</a></p> <p>Again, sorry if this post is too late, but it should at least be able to help out NancyCentury. </p> NancyCentury on "Update "person or group" field with SPD workflow." http://www.endusersharepoint.com/STP/topic/update-person-or-group-field-with-spd-workflow#post-4783 Tue, 03 Mar 2009 10:58:52 +0000 NancyCentury 4783@http://www.endusersharepoint.com/STP/ <p>I know that every time I use SPD workflows to create an item in a task list, I can populate every field in the related task item being created EXCEPT "assigned to." In my original WF, I choose action "update list item" = "Assigned to" and enter a specifc person's name. My goal is to create the task and assign it all at once. Just like the poster above indicated, when I do this the WF returns an "error updating list item" every time. So now I leave off the "assigned to" part and have to go in after the fact and assign the task. Very annoying. </p> laura67 on "Update "person or group" field with SPD workflow." http://www.endusersharepoint.com/STP/topic/update-person-or-group-field-with-spd-workflow#post-3973 Thu, 05 Feb 2009 15:20:43 +0000 laura67 3973@http://www.endusersharepoint.com/STP/ <p>As a non-programmer, here's what I'd do to accomplish the view you need to create.<br /> On the same page as your form library view, add a "Current user filter" web part. Set up the web part to look at "Account Name". Then, as long as your form web part list view is displaying your Approver column, you can connect the two web parts using that field.<br /> End result: Logged in user sees only list items where they are in the Approver column.</p> <p>Laura Rogers<br /> <a href="http://spinsiders.com/laurar" rel="nofollow">http://spinsiders.com/laurar</a> </p> claudiagil on "Update "person or group" field with SPD workflow." http://www.endusersharepoint.com/STP/topic/update-person-or-group-field-with-spd-workflow#post-3935 Wed, 04 Feb 2009 17:06:10 +0000 claudiagil 3935@http://www.endusersharepoint.com/STP/ <p>Hello,</p> <p>I know it may be a little late for posting a response but I've just promoted a text field from my infopath form to a Person type column in SharePoint.</p> <p>What I did was, created a custom content type, custom site colum and custom list definition. Inside de list definition I was able to add my custom field, with the Node attribute set to the xpath of my text field in the infopath form. The way to specify a user in the infopath form, so SharePoint column get's the user is by SharePoint user ID.</p> <p>I hope that helps</p> <p>Claudia </p> AutoSponge on "Update "person or group" field with SPD workflow." http://www.endusersharepoint.com/STP/topic/update-person-or-group-field-with-spd-workflow#post-1085 Wed, 10 Sep 2008 16:51:15 +0000 AutoSponge 1085@http://www.endusersharepoint.com/STP/ <p>Well, a filtered choice list is possible with javascript--it's not even that hard. But it does involve writing (or in my case cobbling together) some lines of a foreign language.</p> <p>I don't know what your other requirements are, but in a hosted environment you're going to continue to run into problems if you can't use the Standard features to solve the business needs. I would start practicing with javascript. </p> Greg.Osimowicz on "Update "person or group" field with SPD workflow." http://www.endusersharepoint.com/STP/topic/update-person-or-group-field-with-spd-workflow#post-1075 Wed, 10 Sep 2008 09:10:29 +0000 Greg.Osimowicz 1075@http://www.endusersharepoint.com/STP/ <p>Unfortunately, no - I can't really use a list. There are a few things implemented in the form that could not be achieved using a list. For example, cascading menus (e.g. User chooses Country:Germany and the next drop-down list (Cities) displays only relevant results (Berlin, Hannover etc.). I know - there are a few solutions out there to achieve similar functionality but they're commercial products plus they require extra solutions to be deployed on the server side. Since my Sharepoint is hosted by an external party this is not an option... </p> <p>It's very frustrating to not be able to achieve something so simple and trivial... Anyways, hopefully the next version will bring some improvements. </p> <p>Cheers,<br /> Greg Osimowicz </p> AutoSponge on "Update "person or group" field with SPD workflow." http://www.endusersharepoint.com/STP/topic/update-person-or-group-field-with-spd-workflow#post-1057 Tue, 09 Sep 2008 15:57:33 +0000 AutoSponge 1057@http://www.endusersharepoint.com/STP/ <p>You may be able to get the functionality you want through a well-designed list instead of InfoPath. With attachments, you can upload the documents you want, use the people picker, and in general have fewer headaches. Any chance you can revisit the requirements? </p> Greg.Osimowicz on "Update "person or group" field with SPD workflow." http://www.endusersharepoint.com/STP/topic/update-person-or-group-field-with-spd-workflow#post-1050 Tue, 09 Sep 2008 05:58:45 +0000 Greg.Osimowicz 1050@http://www.endusersharepoint.com/STP/ <p>Hi there, </p> <p>Thanks again for your reply. I'd had a look at the web services route before. However, while it's feasible to create or update new list items using Sharepoint web services (UpdateListItem features) it's not the same story when trying to upload a file (Infopath form in this case). The native web services do not seem to include a function to upload a file - a custom service has been written and is available for download (http://www.sharepointblogs.com/ssa/archive/2006/11/30/wsuploadservice-web-service-for-uploading-documents-into-sharepoint.aspx) - however, as my hosting provider won't install it on their platform it's not a viable solution for me.<br /> Plus it seems to be such an overkill to be going down the route of configuring web services when all you need is use the value of a promoted "Single line of text" column in "Person or group" column... This shouldn't be impossible really! ... Oh well, I guess it's just Sharepoint - you don't either love it or hate it. You love it AND hate it at the same time :(</p> <p>Greg Osimowicz </p> AutoSponge on "Update "person or group" field with SPD workflow." http://www.endusersharepoint.com/STP/topic/update-person-or-group-field-with-spd-workflow#post-1022 Fri, 05 Sep 2008 10:31:07 +0000 AutoSponge 1022@http://www.endusersharepoint.com/STP/ <p>I meant, have you tried to submit the InfoPath form using the built-in web services option(s)? I think you can do this without code as long as you're using the client app version of the form. </p> Greg.Osimowicz on "Update "person or group" field with SPD workflow." http://www.endusersharepoint.com/STP/topic/update-person-or-group-field-with-spd-workflow#post-1020 Fri, 05 Sep 2008 09:46:51 +0000 Greg.Osimowicz 1020@http://www.endusersharepoint.com/STP/ <p>Thanks for your reply. I had tried to use the people picker - however, as my sharepoint hosting provider use some custom authentication provider I couldn't get things to work (it works fine with my internal test MOSS server though). I could try and use web services - however, as we don't have coding skills it would most likely take a looong time to get working. Plus it seems to be a bit of an overkills for such a simple requirement. </p> <p>The problem is not actually InfoPath related - I already use data connections in the form that successfully pull user info (account, email etc.) from the user information list in sharepoint. I then promote this info to "plain text" Sharepoint column. Where I get stuck really is how to "convert" the plain text column to a "person or group" column (or just copy the value from one column to another). You'd think this should be straightforward. I actually tried to even copy one "person or group" column to another of the same type and that won't work either (e.g. copy the "Created by" column value to a "Copy of Created by" (person or group type)). And these are both of the same type so there shouldn't be any issues... So frustrating!!</p> <p>Anyways, thanks again for your reply.<br /> Greg Osimowicz </p> AutoSponge on "Update "person or group" field with SPD workflow." http://www.endusersharepoint.com/STP/topic/update-person-or-group-field-with-spd-workflow#post-1019 Fri, 05 Sep 2008 09:23:09 +0000 AutoSponge 1019@http://www.endusersharepoint.com/STP/ <p>If you use the people picker in InfoPath, you get person data like this:<br /> <pre><code>&lt;my:MyGroup&gt; &lt;my:Person&gt; &lt;my:DisplayName&gt;Grenier, Paul&lt;/my:DisplayName&gt; &lt;my:AccountId&gt;DOMAIN\userid&lt;/my:AccountId&gt; &lt;my:AccountType&gt;User&lt;/my:AccountType&gt; &lt;/my:Person&gt; &lt;/my:MyGroup&gt;</code></pre> <p>But the data in a Person/Group column looks like this:<br /> <code>&lt;nobr&gt;&lt;span&gt;&lt;A HREF=&quot;/sites/_layouts/userdisp.aspx?ID=947&quot;&gt;Grenier, Paul&lt;/A&gt;&lt;img border=&quot;0&quot; height=&quot;1&quot; width=&quot;3&quot; src=&quot;/_layouts/images/blank.gif&quot;/&gt;&lt;a href=&#39;javascript:&#39; onclick=&#39;IMNImageOnClick();return false;&#39; class=&#39;ms-imnlink&#39;&gt;&lt;img name=&#39;imnmark&#39; title=&#39;&#39; border=&#39;0&#39; height=&#39;12&#39; width=&#39;12&#39; src=&#39;/_layouts/images/blank.gif&#39; alt=&#39;No presence information&#39; sip=&#39;[email protected]&#39; id=&#39;imn_391,type=smtp&#39;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;/nobr&gt;</code></p> <p>The only thing that seems to recognize strings like "DOMAIN\user" are the web services and the UI. Have you tried to push the data with a web service? </p> Greg.Osimowicz on "Update "person or group" field with SPD workflow." http://www.endusersharepoint.com/STP/topic/update-person-or-group-field-with-spd-workflow#post-1016 Fri, 05 Sep 2008 08:33:06 +0000 Greg.Osimowicz 1016@http://www.endusersharepoint.com/STP/ <p>Hi everyone, </p> <p>Has anyone had any luck updating a field of type "Person or Group" with Sharepoint Designer Workflow? For some reason I keep getting a "Error updating a list item" error. </p> <p>Scenario:<br /> ==========<br /> I have an InfoPath Purchase Orders form published to a Sharepoint library. Several fields (e.g. Requestor, Approver etc) are promoted to Sharepoint columns. As it is not possible to promote to a Sharepoint column of type "Person or Group" the columns are created as "Single line of text" type. </p> <p>Problem:<br /> ==========<br /> On the Sharepoint library where the forms reside I need to use filtering using the dynamic [Me] parameter. </p> <p>For example, there should be a view for approvers where a given approver will only see forms for which he/she was selected as approver. So, 10 forms have been submitted, 2 forms have Joe Smith set as approver, when John visits the library he can only see the 2 forms. </p> <p>The problem is I can't use the "Approver" column promoted from Infopath to create a view using the [Me] parameter as the "Approver" column is of type "Single line of text". What I wanted to do was to create additional columns of type "Person or Group" (e.g. "Approver - for filtering") and have an SPD workflow update the new "person or group" column with the value of the corresponding "single line of text" column. </p> <p>For example, when a form is filled out, a user specifies Joe Smith as approver, the form is submitted to Sharepoint, the "Approver" column is updated with "John Smith", a workflow kicks in and updates the "Approver - for filtering" column (Person or group type) with "John Smith". The column is then used to create a filter based on the [Me] parameter. </p> <p>Easy enough. The problem is I can't update a column of type "person or group" using SPD workflow. I keep getting "error updating list item" errors no matter what values I use to update the column (email address, full name, user account) - it just won't take it. I've tried changing the "Show field" value on the column itself to Account, email and name but that doesn't make any difference. </p> <p>Does anyone know why? Or what other approach I could use in this scenario? I know I could use one of the custom SPD workflow activities from CodePlex but as my intranet is hosted externally this is not an option. </p> <p>Thanks in advance,<br /> Greg </p>