microsoft / Microsoft-Fabric-workload-development-sample

Demonstrates how to implement a Microsoft Fabric workload in .net and typescript
Other
30 stars 16 forks source link

Navigate to product home page from workload app #98

Closed q-nicolechoi closed 3 weeks ago

q-nicolechoi commented 2 months ago

Is there a way to navigate from the workload app to the product home page (https://app.fabric.microsoft.com/home?experience=XXX)?

I tried using the NavigationAPI like so but I'm not sure if it is the correct way:

private workloadClient: WorkloadClientAPI = createWorkloadClient();
this.workloadClient.client.navigation.navigate('host', { path: '/home'  }).catch(err => console.error(err));

// error:
{error: '3p extensions cannot navigate to host target'}

Also tried target="workload" but it takes me to https://app.fabric.microsoft.com/workloads/XXX?experience=XXX, where this path /workloads/XXX does not exist in our workload

this.client.client.navigation.navigate('workload', { path: '' }).catch(err => console.error(err));
ramizsha commented 2 months ago

Nope, this is not supported. (as the error suggests).