<?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: How to retrieve the output of a look-up activity in a notebook in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4896549#M8871</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475779" data-lia-user-login="Charline_74" class="lia-mention lia-mention-user"&gt;Charline_74&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We have not received a response from you regarding the query and were following up to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Dec 2025 04:44:32 GMT</pubDate>
    <dc:creator>v-karpurapud</dc:creator>
    <dc:date>2025-12-09T04:44:32Z</dc:date>
    <item>
      <title>How to retrieve the output of a look-up activity in a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4887795#M8832</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a pipeline in which I perform a lookup on a table and retrieve this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{ "count": 7, "value": [ { "WorkspaceID": "WKS13", "WorkspaceName": "Test Workspace 5", "UserEmail": "email" }, { "WorkspaceID": "WKS9", "WorkspaceName": "Test Workspace 9", "UserEmail": "email" }, { "WorkspaceID": "WKS9", "WorkspaceName": "Test Workspace 9", "UserEmail": "email" }, { "WorkspaceID": "WKS12", "WorkspaceName": "Test Workspace 12", "UserEmail": "email" }, { "WorkspaceID": "WKS11", "WorkspaceName": "Test Workspace 11", "UserEmail": "email" }, { "WorkspaceID": "WKS15", "WorkspaceName": "Test Workspace 11", "UserEmail": "email" }, { "WorkspaceID": "WKS16", "WorkspaceName": "Test Workspace 11", "UserEmail": "email" } ] } &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I would like to retrieve this in a notebook.&lt;/P&gt;&lt;P&gt;Do you have a solution?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 15:22:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4887795#M8832</guid>
      <dc:creator>Charline_74</dc:creator>
      <dc:date>2025-11-27T15:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the output of a look-up activity in a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4887852#M8833</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475779" data-lia-user-login="Charline_74" class="lia-mention lia-mention-user"&gt;Charline_74&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes you can do that. Here is a common method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Method: Pass the Lookup output to the Notebook as a parameter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. In your pipeline&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After the Lookup activity (for example, named LookupWorkspaces), add a Notebook activity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the Notebook activity → Base parameters, pass the lookup result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Parameter name:&lt;/SPAN&gt; &lt;SPAN&gt;lookupResult&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Value:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;@activity('LookupWorkspaces').output.value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This passes only the value array (the list of rows).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you want the entire JSON output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;@activity('LookupWorkspaces').output&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. In your notebook (PySpark or Python)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PySpark&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dbutils.widgets.get("lookupResult")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Python&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If using a Python cell:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;import json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;lookup_json = dbutils.widgets.get("lookupResult")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;lookup_list = json.loads(lookup_json)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;lookup_list&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This gives you a Python list of dicts:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;{"WorkspaceID": "WKS13", "WorkspaceName": "Test Workspace 5", "UserEmail": "email"},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;{"WorkspaceID": "WKS9",&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;"WorkspaceName": "Test Workspace 9", "UserEmail": "email"},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can convert it into a Spark DataFrame if needed:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;df = spark.createDataFrame(lookup_list)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;df.show()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helps, leave kudos and mark it as solution.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards, Mauro&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 16:51:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4887852#M8833</guid>
      <dc:creator>Mauro89</dc:creator>
      <dc:date>2025-11-27T16:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the output of a look-up activity in a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4889449#M8837</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="937100" data-lia-user-login="Mauro89" class="lia-mention lia-mention-user"&gt;Mauro89&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;I am getting this error:&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;NameError&lt;/SPAN&gt;&lt;SPAN&gt;: name 'dbutils' is not defined&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 08:31:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4889449#M8837</guid>
      <dc:creator>Charline_74</dc:creator>
      <dc:date>2025-12-01T08:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the output of a look-up activity in a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4889459#M8838</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475779" data-lia-user-login="Charline_74" class="lia-mention lia-mention-user"&gt;Charline_74&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure about the error. But this is then the processing of the data within the notebook.&lt;BR /&gt;Maybe instead of writing, check out this video&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=V6uTEbBiVso" target="_blank"&gt;Passing Variables to Notebooks in Fabric Metadata Driven Pipelines&lt;/A&gt;&lt;BR /&gt;This helped me implementing this pattern of passing the data to the notebook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 08:57:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4889459#M8838</guid>
      <dc:creator>Mauro89</dc:creator>
      <dc:date>2025-12-01T08:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the output of a look-up activity in a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4889815#M8840</link>
      <description>&lt;P&gt;Solution: Pass Lookup Output as Notebook Parameter&lt;BR /&gt;In your ADF pipeline, after the Lookup activity, add a Notebook activity and configure it to pass the lookup result as a parameter.&lt;/P&gt;&lt;P&gt;ADF Pipeline Configuration:&lt;BR /&gt;1. In the Notebook activity, go to Settings &amp;gt; Base parameters&lt;/P&gt;&lt;P&gt;2. Add a parameter (e.g., lookup_data) with this expression:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;@string(activity('YourLookupActivityName').output.value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.In the Notebook (Python/PySpark):&lt;BR /&gt;import json&lt;/P&gt;&lt;P&gt;# Get the parameter passed from ADF&lt;BR /&gt;lookup_data_str = dbutils.widgets.get("lookup_data")&lt;/P&gt;&lt;P&gt;# Parse the JSON string&lt;BR /&gt;lookup_data = json.loads(lookup_data_str)&lt;/P&gt;&lt;P&gt;# Now you can work with the data&lt;BR /&gt;print(f"Total records: {len(lookup_data)}")&lt;/P&gt;&lt;P&gt;# Iterate through the results&lt;BR /&gt;for item in lookup_data:&lt;BR /&gt;workspace_id = item['WorkspaceID']&lt;BR /&gt;workspace_name = item['WorkspaceName']&lt;BR /&gt;user_email = item['UserEmail']&lt;BR /&gt;print(f"WorkspaceID: {workspace_id}, Name: {workspace_name}, Email: {user_email}")&lt;/P&gt;&lt;P&gt;# Or convert to a DataFrame&lt;BR /&gt;from pyspark.sql import SparkSession&lt;BR /&gt;spark = SparkSession.builder.getOrCreate()&lt;/P&gt;&lt;P&gt;df = spark.createDataFrame(lookup_data)&lt;BR /&gt;df.show()&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 16:34:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4889815#M8840</guid>
      <dc:creator>Gopikrsihna</dc:creator>
      <dc:date>2025-12-01T16:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the output of a look-up activity in a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4889822#M8841</link>
      <description>&lt;P&gt;another solution can be - Store in a temparory Table / file and read in Notepad&lt;/P&gt;&lt;P&gt;In ADF:&lt;/P&gt;&lt;P&gt;1. After the 'Loopup' activity , add a 'Copy Data' activity&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Source in Copy Activity : Use the Lookup' Output&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Sink in Copy Activity: write it to a temparory location either a table/Azure Blob or ADLS&lt;/P&gt;&lt;P&gt;3. In the notepad use this code&lt;/P&gt;&lt;P&gt;# Read from the temporary location&lt;BR /&gt;df = spark.read.json("abfss://container@storage.dfs.core.windows.net/temp/lookup_result.json")&lt;BR /&gt;df.show()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 16:42:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4889822#M8841</guid>
      <dc:creator>Gopikrsihna</dc:creator>
      <dc:date>2025-12-01T16:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the output of a look-up activity in a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4892428#M8856</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475779" data-lia-user-login="Charline_74" class="lia-mention lia-mention-user"&gt;Charline_74&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I would also like to thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="937100" data-lia-user-login="Mauro89" class="lia-mention lia-mention-user"&gt;Mauro89&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="875908" data-lia-user-login="Gopikrsihna" class="lia-mention lia-mention-user"&gt;Gopikrsihna&lt;/a&gt;&amp;nbsp; for your active participation and for sharing solutions within the community forum.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope the information provided helps resolve your issue. If you have any further questions or need additional assistance, please feel free to contact us. We are always here to help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 04:48:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4892428#M8856</guid>
      <dc:creator>v-karpurapud</dc:creator>
      <dc:date>2025-12-04T04:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the output of a look-up activity in a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4896549#M8871</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475779" data-lia-user-login="Charline_74" class="lia-mention lia-mention-user"&gt;Charline_74&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We have not received a response from you regarding the query and were following up to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 04:44:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-retrieve-the-output-of-a-look-up-activity-in-a-notebook/m-p/4896549#M8871</guid>
      <dc:creator>v-karpurapud</dc:creator>
      <dc:date>2025-12-09T04:44:32Z</dc:date>
    </item>
  </channel>
</rss>

