Navigate to a URL-Addressable Component (Summer '24)

1.Add lightning__UrlAddressable to the meta xml file.

<LightningComponentBundle xmlns="https://soap.sforce.com/2006/04/metadata">

<apiVersion>59.0</apiVersion>

<isExposed>true</isExposed>

<targets>

<target>lightning__UrlAddressable</target>

</targets>

</LightningComponentBundle>

2.using the NavigationMixin, navigate the user to target component.

this[NavigationMixin.Navigate]({

type: "standard__component",

attributes: {

componentName: "c__MyComponent",

},

state: {

c__optionalState: "stateValue",

},

});

To navigate to the component, use the standard__component page reference type.

Include the required attributes and optional state objects.

3.use a getter to return the property value from the state object in target component

@wire(CurrentPageReference)

currentPageRef;

@api propertyValue;

get propertyValue() {

return this.currentPageRef.state.c__propertyValue;

}

Yusuf Khan

Currently Upskilling in Agentforce. Looking for interested people to join me as a team for Agentforce Hackathon Bengaluru.

7 个月

Very informative. Please include images and stylings and use more hashtags to reach the community.

回复

要查看或添加评论,请登录

Bhanu Prakash Medikurthi的更多文章

  • Data Cloud One

    Data Cloud One

    With Data Cloud One, you can now connect multiple orgs to a central Data Cloud home org via a companion connection…

  • Trailblazer Quest Winner

    Trailblazer Quest Winner

    Thank you #Trailhead for this #swag. i am waiting for #Agentforce T-shirt.

    1 条评论
  • Built with Agentforce Quest

    Built with Agentforce Quest

    Completed the built with Agentforec Quest. Enjoyed and learn new Agentforce using Topics , Instructions and Actions.

  • Atlas Reasoning Engine

    Atlas Reasoning Engine

    Atlas Reasoning Engine is the brain of agentforce. The Orchestration engine that communicates with users and LLMs to…

  • Five attributes of an Agentforce Agent

    Five attributes of an Agentforce Agent

    Roles: these are the salespeople, account executives, sales managers, customer support reps, marketers, wealth…

  • Agentforce for Developers

    Agentforce for Developers

    With Agentforce for Developers (formerly Einstein for Devs) you can use /explain or /document to understand and improve…

  • Salesforce unveiled Agentforce

    Salesforce unveiled Agentforce

    1.With autonomous agents for service, sales ,Marketing, Commerce and platform.

  • Salesforce Reports & Dashboards (Winter ’25)

    Salesforce Reports & Dashboards (Winter ’25)

    Add Calculated Fields to Your Lightning Reports with Einstein Generative AI : Use Einstein Report Formula Generation to…

  • Configure the Dynamic Highlights Panel in Lightning App Builder (Winter ’25)

    Configure the Dynamic Highlights Panel in Lightning App Builder (Winter ’25)

    Use the new Dynamic Highlights Panel in Lightning App Builder to easily configure your key fields, instead of using…

  • User Management Enhancements | Winter ’25

    User Management Enhancements | Winter ’25

    1. Enhancements to the User Access Summary 2.

社区洞察