<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Users, ALL by Name, pick list in Fusion Manage Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-manage-forum/users-all-by-name-pick-list/m-p/4386108#M7322</link>
    <description>&lt;P&gt;Hi Tim,&lt;/P&gt;
&lt;P&gt;This will require a behavior script.&lt;/P&gt;
&lt;P&gt;You could use the Javascript split function to "split" your username selection in your picklist into two strings for firstName and lastName.&lt;/P&gt;
&lt;P&gt;var selectedUser = item.USER_PL.split(", ");&lt;/P&gt;
&lt;P&gt;From there you could construct a new user properties object, and set firstName and lastName as properties.&lt;/P&gt;
&lt;P&gt;Then pass that user properties object to the Security.searchUsers() method and retrieve a new user object.&lt;/P&gt;
&lt;P&gt;Finally set your email field to the email property found on your user object.&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2013 21:48:15 GMT</pubDate>
    <dc:creator>bastien.mazeran</dc:creator>
    <dc:date>2013-08-29T21:48:15Z</dc:date>
    <item>
      <title>Users, ALL by Name, pick list</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/users-all-by-name-pick-list/m-p/4385263#M7321</link>
      <description>&lt;P&gt;I'm using the&amp;nbsp;&lt;/P&gt;&lt;P&gt;Users, ALL by Name pick list to get list of current users. once I have selected one user how would I go about getting that persons email address?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2013 10:57:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/users-all-by-name-pick-list/m-p/4385263#M7321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-29T10:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Users, ALL by Name, pick list</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/users-all-by-name-pick-list/m-p/4386108#M7322</link>
      <description>&lt;P&gt;Hi Tim,&lt;/P&gt;
&lt;P&gt;This will require a behavior script.&lt;/P&gt;
&lt;P&gt;You could use the Javascript split function to "split" your username selection in your picklist into two strings for firstName and lastName.&lt;/P&gt;
&lt;P&gt;var selectedUser = item.USER_PL.split(", ");&lt;/P&gt;
&lt;P&gt;From there you could construct a new user properties object, and set firstName and lastName as properties.&lt;/P&gt;
&lt;P&gt;Then pass that user properties object to the Security.searchUsers() method and retrieve a new user object.&lt;/P&gt;
&lt;P&gt;Finally set your email field to the email property found on your user object.&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2013 21:48:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/users-all-by-name-pick-list/m-p/4386108#M7322</guid>
      <dc:creator>bastien.mazeran</dc:creator>
      <dc:date>2013-08-29T21:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Users, ALL by Name, pick list</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/users-all-by-name-pick-list/m-p/4386537#M7323</link>
      <description>&lt;P&gt;Great Help thanks, I didn't think it would be as involved as that.&lt;/P&gt;&lt;P&gt;I'll let you know how I get on.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:17:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/users-all-by-name-pick-list/m-p/4386537#M7323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-30T08:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Users, ALL by Name, pick list</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/users-all-by-name-pick-list/m-p/4387039#M7324</link>
      <description>&lt;P&gt;Hi Tim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I actually had the same question asked of me earlier so I figured I would share the full solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;****Note: ****&lt;/P&gt;
&lt;P&gt;This is based on a multi pick list and a scenario of 2 users with the same first and last name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Solution:&lt;/P&gt;
&lt;P&gt;var userName=item.APPROVALS_REQUIRED; // Get the users&lt;/P&gt;
&lt;P&gt;var nameArray=userName[0].split(", "); // Split the name of user in question&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var lName=nameArray[0]; // Last name&lt;/P&gt;
&lt;P&gt;var fName=nameArray[1]; // First name&lt;/P&gt;
&lt;P&gt;var userInfo=Security.searchUsers({lastName:lName, firstName:fName}); //find the user&lt;/P&gt;
&lt;P&gt;var userEmail=userInfo[0].email; //return email of user in question&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2013 13:51:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/users-all-by-name-pick-list/m-p/4387039#M7324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-30T13:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Users, ALL by Name, pick list</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/users-all-by-name-pick-list/m-p/4387099#M7325</link>
      <description>&lt;P&gt;HI Joe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With a little help this is what I ended up with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var selectedUser = item.ENGINEER.split(", ");&lt;BR /&gt;var user = Security.searchUsers({ lastName: selectedUser[0], firstName: selectedUser[1] });&lt;/P&gt;&lt;P&gt;if (!item.ENGINEER_EMAIL) {&lt;BR /&gt;//println(user[0].email);&lt;BR /&gt;item.ENGINEER_EMAIL = user[0].email;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2013 14:15:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/users-all-by-name-pick-list/m-p/4387099#M7325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-30T14:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Users, ALL by Name, pick list</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/users-all-by-name-pick-list/m-p/4387111#M7326</link>
      <description>&lt;P&gt;Tim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nice solution as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2013 14:23:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/users-all-by-name-pick-list/m-p/4387111#M7326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-30T14:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Users, ALL by Name, pick list</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/users-all-by-name-pick-list/m-p/4414803#M7327</link>
      <description>&lt;P&gt;Tim and Joe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nice solution and thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great example of the new Security.searchUser function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This along with pre-filtered picklist will make for many many options for workflow and notification assignments and checking with some inteligence to the options presented to the users&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much more useful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bob D&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2013 13:51:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/users-all-by-name-pick-list/m-p/4414803#M7327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-10T13:51:20Z</dc:date>
    </item>
  </channel>
</rss>

