<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: GetCommonManager</title><link>https://www.infopathdev.com:443/forums/thread/53634.aspx</link><pubDate>Tue, 13 Apr 2010 14:35:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53634</guid><dc:creator>claydevin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53634.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53634</wfw:commentRss><description>&lt;p&gt;got it to work, used a different method... one you mentioned on someone else&amp;#39;s post.&amp;nbsp; didn&amp;#39;t directly pull the manager name and email from GetCommonManager but used the UserProfilebyName and then followed your step below.&amp;nbsp; Not sure why it worked and the direct call didnt, but.......thanks!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;have a rule set on the Manager field that sets the GetCommonManager query field (AccountName) to the Manager&amp;#39;s account name, and then it queries the WS&amp;quot;&lt;/p&gt;</description></item><item><title>Re: GetCommonManager</title><link>https://www.infopathdev.com:443/forums/thread/53628.aspx</link><pubDate>Tue, 13 Apr 2010 13:34:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53628</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53628.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53628</wfw:commentRss><description>&lt;p&gt;Hey, Clay, nice name.&amp;nbsp; Have you verified that the test user has a manager assigned in the User Profile Database?&amp;nbsp; There are a few ways to check:&lt;/p&gt;
&lt;p&gt;1) Using the GetUserProfileByName method, display the Manager value and see what&amp;#39;s there.&amp;nbsp; You probably will see nothing.&lt;/p&gt;
&lt;p&gt;2) Go to your SSP Admin &amp;gt; User Profiles and Properties &amp;gt; View User Profiles, and search for the test user.&amp;nbsp; Edit that user&amp;#39;s properties and go see what is in the Manager field.&amp;nbsp; I&amp;#39;m guessing there isn&amp;#39;t anything.&lt;/p&gt;
&lt;p&gt;If there is nothing in the Manager field, then first make sure the user has a Manager defined in AD, and then do another profile import to ensure the profile database gets updated.&lt;/p&gt;</description></item><item><title>Re: GetCommonManager</title><link>https://www.infopathdev.com:443/forums/thread/53625.aspx</link><pubDate>Tue, 13 Apr 2010 12:34:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53625</guid><dc:creator>claydevin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53625.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53625</wfw:commentRss><description>&lt;p&gt;Clayton..anyone....&amp;nbsp; &lt;br /&gt;I&amp;#39;ve been using a method like you layed out&amp;nbsp;for a couple weeks now...&amp;nbsp;&amp;nbsp; But...&amp;nbsp; I get the 5566 error for some of my users.&amp;nbsp; I have it pinpointed to the error below.&amp;nbsp; It is the GetCommonManager and not the&amp;nbsp;GetProfilebyName data source.&amp;nbsp;&amp;nbsp; I cant duplicate the error on my machine/profile or other dummy AD account we&amp;#39;ve created.&amp;nbsp;&amp;nbsp; does it have something to do with how the username is passed?&lt;/p&gt;
&lt;p&gt;Thoughts?&amp;nbsp; We have a small team here and our test users patience is wearing thin.&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;&lt;span style="FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:#1f497d;FONT-SIZE:11pt;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;mso-themecolor:dark2;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;The following query failed: GetCommonManager (User: DOMAIN\john.doe, &lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;Exception Message: The remote server returned an error: (500) Internal Server Error.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Server was unable to process request. ---&amp;gt; Object reference not set to an instance of an object. The remote server returned an error: (500) Internal Server Error.)&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: GetCommonManager</title><link>https://www.infopathdev.com:443/forums/thread/40601.aspx</link><pubDate>Tue, 14 Apr 2009 17:18:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40601</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40601.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40601</wfw:commentRss><description>&lt;p&gt;I explained exactly how to do that.&amp;nbsp; My entire example centers around displaying the Manager&amp;#39;s email address using both web services.&amp;nbsp; It works like a charm for me the way I described it.&lt;/p&gt;</description></item><item><title>Re: GetCommonManager</title><link>https://www.infopathdev.com:443/forums/thread/40600.aspx</link><pubDate>Tue, 14 Apr 2009 16:45:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40600</guid><dc:creator>kkhelif</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40600.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40600</wfw:commentRss><description>&lt;p&gt;My problem isn&amp;#39;t getting the Manager name, that part works fine using &amp;quot;GetUserProfileName&amp;quot;, I am trying to get the Manager&amp;#39;s email so when user click on Submit the &amp;quot;TO&amp;quot; take that email address.&lt;/p&gt;</description></item><item><title>Re: GetCommonManager</title><link>https://www.infopathdev.com:443/forums/thread/40591.aspx</link><pubDate>Tue, 14 Apr 2009 15:16:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40591</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40591.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40591</wfw:commentRss><description>&lt;p&gt;I hadn&amp;#39;t done this in a while, so I just tested it again to be sure.&amp;nbsp; This is what I&amp;#39;m doing:&lt;/p&gt;
&lt;p&gt;1) Using GetProfileByName and GetCommonManager in the same form.&lt;/p&gt;
&lt;p&gt;2) Upon opening the form, I let the logged-in user&amp;#39;s AccountName send itself by default to the two web services.&lt;/p&gt;
&lt;p&gt;3) The resulting datasets show the profile data of my user and limited profile data of the user&amp;#39;s manager.&lt;/p&gt;
&lt;p&gt;4) I simply make a text box that defaults to the &amp;quot;Email&amp;quot; attribute of GetCommonManager.&amp;nbsp; If I want to get the email of another person&amp;#39;s manager, I just have to have that person&amp;#39;s AccountName (i.e. ccobb, but not domain\ccobb).&lt;/p&gt;
&lt;p&gt;I am not familiar with the part that you are referencing here:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;it will only give you the common manager with someone else and not their supervisor...&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;For me, it returns the &amp;quot;manager&amp;quot; of that person as determined by AD.&amp;nbsp; Just to be sure, I created another field named &amp;quot;username&amp;quot; and made a custom button with these rules:&lt;/p&gt;
&lt;p&gt;1) Set AccountName (GetProfileByName) to Username&lt;/p&gt;
&lt;p&gt;2) Set accountName (GetCommonManager) to Username&lt;/p&gt;
&lt;p&gt;3) Query GetProfileByName&lt;/p&gt;
&lt;p&gt;4) Query GetCommonManager&lt;/p&gt;
&lt;p&gt;After I type a username in that field (i.e. ccobb) and push the button, the Employee text box changes to that person&amp;#39;s PreferredName, and the Manager text box changes to the email of that person&amp;#39;s manager in AD.&lt;/p&gt;</description></item><item><title>Re: GetCommonManager</title><link>https://www.infopathdev.com:443/forums/thread/40569.aspx</link><pubDate>Mon, 13 Apr 2009 23:26:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40569</guid><dc:creator>kkhelif</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40569.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40569</wfw:commentRss><description>&lt;p&gt;I tried the same reasoning for the common manager but that didn&amp;#39;t as it will only give you the common manager with someone else and not their supervisor. In my example like if I pick myself and someone in my group it works but if I pick someone outside our group it wouldn&amp;#39;t give their direct supervisor but the one above that which is common for both of us.&lt;/p&gt;
&lt;p&gt;Also I couldn&amp;#39;t do Value/Name and then&amp;nbsp;filter on Manager Workmail. &lt;/p&gt;
&lt;p&gt;If you know the exact steps I&amp;#39;d really appreciate if you post them.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: GetCommonManager</title><link>https://www.infopathdev.com:443/forums/thread/40568.aspx</link><pubDate>Mon, 13 Apr 2009 22:41:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40568</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40568.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40568</wfw:commentRss><description>&lt;p&gt;After getting the manager from the GetProfileByName, you send that same piece of data to the GetCommonManager, and it returns a data set of relevant info just like the previous method.&amp;nbsp; You retrieve the data the same way - there should be no filtering.&amp;nbsp; Just remember to pass the manager&amp;#39;s username to the GetCommonManager as a query item.&lt;/p&gt;</description></item><item><title>GetCommonManager</title><link>https://www.infopathdev.com:443/forums/thread/40518.aspx</link><pubDate>Fri, 10 Apr 2009 18:41:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40518</guid><dc:creator>kkhelif</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40518.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40518</wfw:commentRss><description>&lt;p&gt;Hi Guys,&lt;/p&gt;
&lt;p&gt;I have an infopath form that gets the User and Manager based on GetUserprofile and I have another Data Connection to get the CommonManager, The data is there but I don&amp;#39;t know the exact steps to get the manager email address doing filtering. Anybody out there can post the steps.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>