<?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 get LakeHouse id and Lakehouse Name in a pipeline activity? in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/4325525#M6597</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;I had the same issue and fixed it with a workaround, hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Read workspace details with a notebook and exit the notebook with details&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LakehouseName="NexusSourcingLakehouse"
lakehouse  = mssparkutils.lakehouse.get(LakehouseName)
mssparkutils.notebook.exit(lakehouse)&lt;/LI-CODE&gt;&lt;P&gt;2. Read exit value (lakehouse details) of the notebook and set variables&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Anonymous&lt;/LI-USER&gt;(activity('Nb_LakehouseDetails').output.result.exitvalue).id

@json(activity('Nb_LakehouseDetails').output.result.exitvalue).workspaceId&lt;/LI-CODE&gt;&lt;P&gt;3. Pass variables to the other notebook as parameters&lt;/P&gt;&lt;P&gt;4. Use parameters to %%configure workspace in the second notebook. This must be the first cell in your notebook&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%%configure -f
{
  "defaultLakehouse": {
    "name": 
     { 
        "parameterName": "lakehouseName", 
        "defaultValue": "" 
    },
    "id":{ 
        "parameterName": "lakehouseId", 
        "defaultValue": "" 
    },
    "workspaceId":
    { 
        "parameterName": "workspaceId", 
        "defaultValue": ""
    }, 
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2024 09:32:42 GMT</pubDate>
    <dc:creator>okana</dc:creator>
    <dc:date>2024-12-12T09:32:42Z</dc:date>
    <item>
      <title>How to get LakeHouse id and Lakehouse Name in a pipeline activity?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/3868478#M2904</link>
      <description>&lt;P&gt;I'm configuring the default lakehouse using %%configure magic commands as below in a notebook,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;%%configure&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{ &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"defaultLakehouse"&lt;/SPAN&gt;&lt;SPAN&gt;: { &amp;nbsp;// This overwrites the default lakehouse &lt;/SPAN&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; current session&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"name"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"parameterName"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"LH_Name"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"defaultValue"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"XYZ"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"id"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"parameterName"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"LakeHouse_ID"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"defaultValue"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"workspaceId"&lt;/SPAN&gt;&lt;SPAN&gt;: // Add workspace &lt;/SPAN&gt;&lt;SPAN&gt;ID&lt;/SPAN&gt; &lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; it&lt;/SPAN&gt;&lt;SPAN&gt;'s from another workspace&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"parameterName"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"WorkSpace_ID"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"defaultValue"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But I need to set/generate the default value to those parameters dynamically through a pipeline activity without any manual interventions. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Currently I doing it by defining parameters in the pipeline and manually assinging the values to it but I felt it's not generic when I move the pipeline from dev to stage, I need to reassign the value manually according to its current workspace.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any Suggestions or ideas......&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 13:08:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/3868478#M2904</guid>
      <dc:creator>Nashrin</dc:creator>
      <dc:date>2024-04-25T13:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get LakeHouse id and Lakehouse Name in a pipeline activity?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/3871096#M2926</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="680373" data-lia-user-login="Nashrin" class="lia-mention lia-mention-user"&gt;Nashrin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for using Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;At this time, we are reaching out to the internal team to get some help on this.&lt;BR /&gt;We will update you once we hear back from them.&lt;BR /&gt;Appreciate your patience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 12:38:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/3871096#M2926</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-04-26T12:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get LakeHouse id and Lakehouse Name in a pipeline activity?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/3897342#M3106</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="680373" data-lia-user-login="Nashrin" class="lia-mention lia-mention-user"&gt;Nashrin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies for the inconvenience and the delay in the response from my end.&lt;/P&gt;
&lt;P&gt;Please reach out to our support team to gain deeper insights and explore potential solutions. It's highly recommended that you reach out to our support team. Their expertise will be invaluable in suggesting the most appropriate approach.&lt;/P&gt;
&lt;P&gt;Please go ahead and raise a support ticket to reach our support team:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.fabric.microsoft.com/support" target="_blank"&gt;https://support.fabric.microsoft.com/support&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;After creating a Support ticket please provide the ticket number as it would help us to track for more information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 05:28:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/3897342#M3106</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-05-07T05:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get LakeHouse id and Lakehouse Name in a pipeline activity?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/3897491#M3108</link>
      <description>&lt;P&gt;Ticket Number:&amp;nbsp;2405070050000197&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 06:23:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/3897491#M3108</guid>
      <dc:creator>Nashrin</dc:creator>
      <dc:date>2024-05-07T06:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get LakeHouse id and Lakehouse Name in a pipeline activity?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/3897547#M3109</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="680373" data-lia-user-login="Nashrin" class="lia-mention lia-mention-user"&gt;Nashrin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for sharing the details.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 06:38:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/3897547#M3109</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-05-07T06:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get LakeHouse id and Lakehouse Name in a pipeline activity?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/3976448#M3801</link>
      <description>&lt;P&gt;Is there already an answer to this question?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 08:08:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/3976448#M3801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-06T08:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get LakeHouse id and Lakehouse Name in a pipeline activity?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/4007343#M4163</link>
      <description>&lt;P&gt;I have this same question, is there a good way to use some kind of .utils function to retrieve the lakehouse name or guid?&amp;nbsp; (notebook or pipeline is fine for me)&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 16:21:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/4007343#M4163</guid>
      <dc:creator>T-Rez</dc:creator>
      <dc:date>2024-06-24T16:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get LakeHouse id and Lakehouse Name in a pipeline activity?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/4325525#M6597</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I had the same issue and fixed it with a workaround, hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Read workspace details with a notebook and exit the notebook with details&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LakehouseName="NexusSourcingLakehouse"
lakehouse  = mssparkutils.lakehouse.get(LakehouseName)
mssparkutils.notebook.exit(lakehouse)&lt;/LI-CODE&gt;&lt;P&gt;2. Read exit value (lakehouse details) of the notebook and set variables&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Anonymous&lt;/a&gt;(activity('Nb_LakehouseDetails').output.result.exitvalue).id

@json(activity('Nb_LakehouseDetails').output.result.exitvalue).workspaceId&lt;/LI-CODE&gt;&lt;P&gt;3. Pass variables to the other notebook as parameters&lt;/P&gt;&lt;P&gt;4. Use parameters to %%configure workspace in the second notebook. This must be the first cell in your notebook&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%%configure -f
{
  "defaultLakehouse": {
    "name": 
     { 
        "parameterName": "lakehouseName", 
        "defaultValue": "" 
    },
    "id":{ 
        "parameterName": "lakehouseId", 
        "defaultValue": "" 
    },
    "workspaceId":
    { 
        "parameterName": "workspaceId", 
        "defaultValue": ""
    }, 
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 09:32:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/4325525#M6597</guid>
      <dc:creator>okana</dc:creator>
      <dc:date>2024-12-12T09:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get LakeHouse id and Lakehouse Name in a pipeline activity?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/4325558#M6598</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Get details in a notebook and return them to data pipeline&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;lakehouse  = mssparkutils.lakehouse.get(LakehouseName)
mssparkutils.notebook.exit(lakehouse)​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set parameters from notebook output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Anonymous&lt;/a&gt;(activity('Nb_LakehouseDetails').output.result.exitvalue).id&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Call the main notebook with parameters that works with Lakehouse. The first cell must be %%configure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%%configure -f
{
  "defaultLakehouse": {
    "name": 
     { 
        "parameterName": "lakehouseName", 
        "defaultValue": "NexusSourcingLakehouse" 
    },
    "id":{ 
        "parameterName": "lakehouseId", 
        "defaultValue": "" 
    },
    "workspaceId":
    { 
        "parameterName": "workspaceId", 
        "defaultValue": ""
    }, 
  }
}&lt;/LI-CODE&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>Thu, 12 Dec 2024 09:39:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/4325558#M6598</guid>
      <dc:creator>okana</dc:creator>
      <dc:date>2024-12-12T09:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get LakeHouse id and Lakehouse Name in a pipeline activity?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/4326192#M6602</link>
      <description>&lt;P&gt;Are you trying to get the workspace and lakehouse IDs into a pipeline or a notebook?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If a pipeline, the WorkspaceID for the workspace where the pipeline resides is a system variable you can populate. For a lakehouse, I haven't seen a variable, and would likely use a notebook to find it.&lt;/LI&gt;&lt;LI&gt;If a notebook, one alternative approach from those already mentioned would be use of sempy (see code below).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The following code snippet shows how to get various info from sempy, including the Workspace and Lakehouse IDs.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import sempy
import sempy.fabric as fabric
import json
from pyspark.sql.functions import col,lit
import pandas as pd

#Can I get the lakehouse ID for a lakehouse by finding its name?
lakehouseName = 'FirstLakeHouse'

#Get basic details from the fabric library
workspaceID = fabric.get_workspace_id()
workspaceName = fabric.resolve_workspace_name(workspaceID)

#Call the Fabric REST API, specifically looking at the lakehouse API
client = fabric.FabricRestClient()
response = client.get(f"/v1/workspaces/{workspaceID}/lakehouses")
responseJson = response.json()
items= pd.json_normalize(responseJson['value'], sep='_')

#Create a dataframe and start looking for our values
df = spark.createDataFrame(items)
display(df)

#This is for context, showing some of the various properties we can get about lakehouses
result_df = df.select(lit(workspaceName).alias("WorkSpace"),
                      col("id").alias("LakehouseId"),
                      col("displayName").alias("Name"),
                      col("type").alias("Type"),
                      col("description").alias("Description"),
                      col("properties_sqlEndpointProperties_connectionString").alias("ConnectionString"),
                      col("properties_oneLakeTablesPath").alias("OneLakeTablePath"),
                      col("properties_oneLakeFilesPath").alias("OneLakeFilePath"))

#Filter to the record we want
result_df = result_df.filter(result_df["Name"] == lakehouseName)
display(result_df)

#Return Lakehouse ID of the desired lakehouse
result_lakehouseid = result_df.select(col("LakehouseId"))
display(result_lakehouseid)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you've found a suitable answer, be sure to select it so others in the community can learn from it!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 14:29:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-get-LakeHouse-id-and-Lakehouse-Name-in-a-pipeline/m-p/4326192#M6602</guid>
      <dc:creator>DataBard</dc:creator>
      <dc:date>2024-12-12T14:29:34Z</dc:date>
    </item>
  </channel>
</rss>

