function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SambitNayakSambitNayak 

How do I create a link to an application in my LWC

Hi,
I have a requirement where the user clicks on a button and is navigated to an application.
I have created a function in my JS controller by creating an URL using the following text+ Application ID, but it's not working. Please let me know if you have any suggestions. How do I build my application URL when I know my application ID?

launchApp(){
this[NavigationMixin.Navigate]({
type: 'standard__navItemPage',
attributes:{
url : '/lightning/app/c__' + this.applicationMetadataToshow.Application_ID__c
}
});
}
Best Answer chosen by SambitNayak
Vinay MVinay M

Hi SambitNayak,

   You can utilize "standard_app" as type of navigation :

 For Reference : https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_page_reference_type

Please mark this as best answer if this solves your issues.

Thank you,

Vinay

{
    type: 'standard__app',
    attributes: {
        appTarget: Application_ID__c,
    }
}

All Answers

Vinay MVinay M

Hi SambitNayak,

   You can utilize "standard_app" as type of navigation :

 For Reference : https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_page_reference_type

Please mark this as best answer if this solves your issues.

Thank you,

Vinay

{
    type: 'standard__app',
    attributes: {
        appTarget: Application_ID__c,
    }
}
This was selected as the best answer
SambitNayakSambitNayak
Thanks Vijay,
Infact, this code worked for me:

type: 'standard__app',
attributes:{
appTarget: 'c__'+ this.DeveloperName