0

I want to access lwc component from custom list button in related list. I created this custom list button with content source as URL to a lightning page. However when I include the parameters it is taking to the page but parameters are getting removed. Is there a way hold the parameters while navigating to a lightning page ?

enter image description here

1 Answer 1

1

Parameters must be specified with a Namespace. If you're developing for your own org, use c as the namespace.

/lightning/n/New_Contact_Roles?c__opptyId=23223

Also, check out the documentation.

state parameters must be namespaced. For example, a managed package with the namespace abc with a parameter accountId is represented as abc__accountId. The namespace for custom components is c__. Parameters without a namespace are reserved for Salesforce use. This namespace restriction is introduced under a critical update in Winter ’19 and enforced in Summer ’19.

Note that this is a double-underscore (__), not just one.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .