<?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>Query service 'GetGroupCollectionFromUser' after successfully received username by 'GetUserProfileByName'</title><link>https://www.infopathdev.com:443/forums/thread/104262.aspx</link><pubDate>Wed, 07 Oct 2015 20:36:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104262</guid><dc:creator>Choceur</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104262.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=104262</wfw:commentRss><description>&lt;p&gt;&lt;span style="mso-ansi-language:EN-US;"&gt;Hi guys,&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="mso-ansi-language:EN-US;"&gt;I am bloody newbie to
Infopath. I want get all the sharepoint groups of the current user. So i use
the SP web service with SOAP and call the &amp;#39;GetUserProfileByName&amp;#39;-Function. This
request is fired with the opening of the form and it goes pretty well. In the
next step i want to get all the groups of this user. Therefor I want query a
second data connection with the method &amp;#39;GetGroupCollectionFromUser&amp;#39;. So I
created a rule which set the name-value received by the first query into the query
field of &amp;#39;GetGroupCollectionFromUser&amp;#39; and in the next step it triggers the data
connection.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="mso-ansi-language:EN-US;"&gt;My problem is how to
trigger this rule by condition from the first request. For my understanding as
soon some value changes in the result set of &amp;#39;GetUserProfileByName&amp;#39; an action
will be fired. I tried to apply this rule (Condtion &amp;#39;Name = Accountname&amp;#39;) to different data-elements of
&amp;#39;GetUserProfileByName&amp;#39; with no result:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;img src="http://s22.postimg.org/r44io6o5d/data_fields.png" height="388" width="397" alt="" /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="mso-ansi-language:EN-US;"&gt;When copy this rule to a text
field and just set the condition for example to &amp;#39;not empty&amp;#39; it works. Can
somebody give me a hint how to trigger a second data connection when the first
one was successful?&lt;/span&gt;

&lt;/p&gt;&lt;p&gt;&lt;span style="mso-ansi-language:EN-US;"&gt;Btw. i used the blog entry
&amp;#39;http://jaliyaudagedara.blogspot.co.il/2011/05/getting-current-users-sharepoint-group.html&amp;#39;
to get the idea.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Best,&lt;/p&gt;&lt;p&gt;Choceur 

&lt;/p&gt;</description></item></channel></rss>