<?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: Pass User ID from Report Builder to Store Procedure in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Pass-User-ID-from-Report-Builder-to-Store-Procedure/m-p/3182866#M29464</link>
    <description>&lt;P&gt;If you pick the stored procedure option in the dataset properties, then navigate to the parameters settings it should list all the parameters for your stored procedure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can then click the fx button to add an expression and choose the UserID from the Built-in Fields&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will end up with a parameter setting that looks like the following and will pass the UserID value from the paginated report to your stored procedure&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2023 01:31:21 GMT</pubDate>
    <dc:creator>d_gosbell</dc:creator>
    <dc:date>2023-04-12T01:31:21Z</dc:date>
    <item>
      <title>Pass User ID from Report Builder to Store Procedure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Pass-User-ID-from-Report-Builder-to-Store-Procedure/m-p/3181284#M29448</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi; I know there is a Built in fields in Power BI Report Builder to get the logged in Username or User ID. What I need to do is pass the value of User ID to SQL&amp;nbsp;to execute a stored procedure that will bring the correct dataset based on the permissions that user has in the database. Hope someone can suggest a way around this issue&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 07:49:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Pass-User-ID-from-Report-Builder-to-Store-Procedure/m-p/3181284#M29448</guid>
      <dc:creator>Vinay96</dc:creator>
      <dc:date>2023-04-11T07:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pass User ID from Report Builder to Store Procedure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Pass-User-ID-from-Report-Builder-to-Store-Procedure/m-p/3182866#M29464</link>
      <description>&lt;P&gt;If you pick the stored procedure option in the dataset properties, then navigate to the parameters settings it should list all the parameters for your stored procedure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can then click the fx button to add an expression and choose the UserID from the Built-in Fields&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will end up with a parameter setting that looks like the following and will pass the UserID value from the paginated report to your stored procedure&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 01:31:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Pass-User-ID-from-Report-Builder-to-Store-Procedure/m-p/3182866#M29464</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2023-04-12T01:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pass User ID from Report Builder to Store Procedure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Pass-User-ID-from-Report-Builder-to-Store-Procedure/m-p/3185239#M29488</link>
      <description>&lt;P&gt;Thanks, Can you pls provide&amp;nbsp;&lt;SPAN&gt;the query in the Store Procedure to accept the User ID&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 03:02:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Pass-User-ID-from-Report-Builder-to-Store-Procedure/m-p/3185239#M29488</guid>
      <dc:creator>Vinay96</dc:creator>
      <dc:date>2023-04-13T03:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pass User ID from Report Builder to Store Procedure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Pass-User-ID-from-Report-Builder-to-Store-Procedure/m-p/3185351#M29490</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524633" data-lia-user-login="Vinay96" class="lia-mention lia-mention-user"&gt;Vinay96&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks, Can you pls provide&amp;nbsp;&lt;SPAN&gt;the query in the Store Procedure to accept the User ID&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't have any query. You asked how to pass a value to a stored procedure and I've showed you the steps to do this. You can put whatever logic you like in the stored procedure based on whatever data you have in your database.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 05:01:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Pass-User-ID-from-Report-Builder-to-Store-Procedure/m-p/3185351#M29490</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2023-04-13T05:01:20Z</dc:date>
    </item>
  </channel>
</rss>

