<?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: Workload Development Toolkit CRUD APIs in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Workload-Development-Toolkit-CRUD-APIs/m-p/4604838#M7832</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1231586"&gt;@prathmeshpawar&lt;/a&gt;,&lt;BR /&gt;Hope your doing good,&lt;BR /&gt;&lt;SPAN&gt;The similar issue faced by someone. You can please go through this accepted solution :&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Engineering/Workload-Development-Toolkit-CRUD-APIs/m-p/4363717#M6092" target="_blank"&gt;Solved: Re: Workload Development Toolkit CRUD APIs - Microsoft Fabric Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Hope this might helps you to solve the problem.&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;If this answers your question, please &lt;STRONG&gt;Accept it as a solution&lt;/STRONG&gt; and give it a '&lt;STRONG&gt;Kudos&lt;/STRONG&gt;' so others can find it easily.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Priyanka&lt;/P&gt;</description>
    <pubDate>Tue, 11 Mar 2025 09:42:21 GMT</pubDate>
    <dc:creator>v-priyankata</dc:creator>
    <dc:date>2025-03-11T09:42:21Z</dc:date>
    <item>
      <title>Workload Development Toolkit CRUD APIs</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Workload-Development-Toolkit-CRUD-APIs/m-p/4592779#M7656</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to generate Authentication bearer token on the fly, to create Datawarehouse via sample workload using the POST APIs available for it.&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-warehouse/collation" target="_blank" rel="noopener nofollow noreferrer"&gt;How to: Create warehouses with case-insensitive (CI) collation - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just FYI: I was able to do so&amp;nbsp; by hard coding my bearer token.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Workload doc for the CRUD APIs auth setup is&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/workload-development-kit/authentication-tutorial#add-a-scope-for-crud-apis-and-jobs" target="_blank" rel="noopener nofollow noreferrer"&gt;Authentication setup - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me with some alternative.&lt;/SPAN&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import { PublicClientApplication, AuthenticationResult } from "@azure/msal-browser";

/// MSAL configuration
const msalConfig = {
auth: {
clientId: "************************", // Replace with your client ID
authority: "https://login.microsoftonline.com/***************", // Replace with your tenant ID
redirectUri: "http://localhost:60006/close", // Replace with your redirect URI
},
};

const msalInstance = new PublicClientApplication(msalConfig);

async function initializeMsal() {
await msalInstance.initialize();
}

async function acquireToken(): Promise&amp;lt;string&amp;gt; {
const request = {
scopes: ["https:api://localdevinstance/******************************/Org.WorkloadSample/FabricWorkloadControl"], // Replace with your API scopes
};

try {
const response: AuthenticationResult = await msalInstance.acquireTokenSilent(request);
return response.accessToken;
} catch (error) {
const response: AuthenticationResult = await msalInstance.acquireTokenPopup(request);
return response.accessToken;
}
}&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>Mon, 03 Mar 2025 11:11:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Workload-Development-Toolkit-CRUD-APIs/m-p/4592779#M7656</guid>
      <dc:creator>prathmeshpawar</dc:creator>
      <dc:date>2025-03-03T11:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Workload Development Toolkit CRUD APIs</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Workload-Development-Toolkit-CRUD-APIs/m-p/4594581#M7688</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1231586"&gt;@prathmeshpawar&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;One of the method is to use OAuth 2.0 Client Credentials Flow rather than hardcoding the bearer token. With the use of a client ID, secret, and tenant ID, you can now create tokens dynamically without the need for human interaction.&lt;BR /&gt;Plesae refer below document it may help you on this.&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow" target="_blank"&gt;OAuth 2.0 client credentials flow on the Microsoft identity platform - Microsoft identity platform | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 08:59:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Workload-Development-Toolkit-CRUD-APIs/m-p/4594581#M7688</guid>
      <dc:creator>v-priyankata</dc:creator>
      <dc:date>2025-03-04T08:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Workload Development Toolkit CRUD APIs</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Workload-Development-Toolkit-CRUD-APIs/m-p/4594708#M7692</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/838399"&gt;@v-priyankata&lt;/a&gt;, consider the following scenario in Workload Development Toolkit&lt;/P&gt;&lt;P&gt;I am a end user, I logged in to Fabric and opened my worload.&lt;BR /&gt;Now in the above snippet I am creating Data warehouse to store the result of the operations performed in my workload. To provision DWH, I need an authentication bearer token, can it be generated by the account through which I logged in to Fabric, or else is it possible to generate PopUp Signin for authetication token generation?&lt;BR /&gt;&lt;BR /&gt;below I am attaching the file of sample workload editor&lt;BR /&gt;please refer to&amp;nbsp;&lt;SPAN&gt;handleCreateWarehouse function&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;const handleCreateWarehouse = async () =&amp;gt; {
  console.log(sampleItem?.workspaceId);
  const workspaceID = sampleItem?.workspaceId;
  const warehouseName = 'LoadFastWarehouse';
  const warehouseDescription = 'LoadFast Warehouse for testing';

  const payload = {
    type: 'Warehouse',
    displayName: warehouseName,
    description: warehouseDescription,
    creationPayload: {
      defaultCollation: 'Latin1_General_100_CI_AS_KS_WS_SC_UTF8'
    }
  };

  try {
    const bearerToken = await acquireToken();
    const response = await fetch(
      `https://api.fabric.microsoft.com/v1/workspaces/${workspaceID}/items`,
      {
        method: 'POST',
        headers: {
          'Content-Type': 'application/json',
          'Authorization': `Bearer ${bearerToken}`
        },
        body: JSON.stringify(payload)
      }
    );

    if (!response.ok) {
      throw new Error('Network response was not ok');
    }

    const data = await response.json();
    console.log('Warehouse created successfully:', data);
  } catch (error) {
    console.error('Error creating warehouse:', error);
  }
};&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 09:59:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Workload-Development-Toolkit-CRUD-APIs/m-p/4594708#M7692</guid>
      <dc:creator>prathmeshpawar</dc:creator>
      <dc:date>2025-03-04T09:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Workload Development Toolkit CRUD APIs</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Workload-Development-Toolkit-CRUD-APIs/m-p/4604838#M7832</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1231586"&gt;@prathmeshpawar&lt;/a&gt;,&lt;BR /&gt;Hope your doing good,&lt;BR /&gt;&lt;SPAN&gt;The similar issue faced by someone. You can please go through this accepted solution :&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Engineering/Workload-Development-Toolkit-CRUD-APIs/m-p/4363717#M6092" target="_blank"&gt;Solved: Re: Workload Development Toolkit CRUD APIs - Microsoft Fabric Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Hope this might helps you to solve the problem.&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;If this answers your question, please &lt;STRONG&gt;Accept it as a solution&lt;/STRONG&gt; and give it a '&lt;STRONG&gt;Kudos&lt;/STRONG&gt;' so others can find it easily.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Priyanka&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 09:42:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Workload-Development-Toolkit-CRUD-APIs/m-p/4604838#M7832</guid>
      <dc:creator>v-priyankata</dc:creator>
      <dc:date>2025-03-11T09:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Workload Development Toolkit CRUD APIs</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Workload-Development-Toolkit-CRUD-APIs/m-p/4618586#M8103</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1231586"&gt;@prathmeshpawar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 16:22:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Workload-Development-Toolkit-CRUD-APIs/m-p/4618586#M8103</guid>
      <dc:creator>v-priyankata</dc:creator>
      <dc:date>2025-03-20T16:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Workload Development Toolkit CRUD APIs</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Workload-Development-Toolkit-CRUD-APIs/m-p/4626054#M8230</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1231586"&gt;@prathmeshpawar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 14:38:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Workload-Development-Toolkit-CRUD-APIs/m-p/4626054#M8230</guid>
      <dc:creator>v-priyankata</dc:creator>
      <dc:date>2025-03-26T14:38:56Z</dc:date>
    </item>
  </channel>
</rss>

