Skip to main content
21 votes
Accepted

Metadata Deploy and Push fails on Flexipage componentInstances in API 49 (Summer 20) and later

In the Summer 20 release, the componentInstances property for FlexiPage regions has been removed. These need to be replaced with itemInstances as outlined in the release notes. More details on the ...
pchittum's user avatar
  • 19.8k
20 votes
Accepted

How to enable lightning component only for a particular page?

Yes, by using the Design file, you can restrict access to just certain objects. This in the documentation: <sfdc:object> and <sfdc:objects> Use these tag sets to restrict your component ...
sfdcfox's user avatar
  • 497k
19 votes
Accepted

Problem when deploying FlexiPages on Winter '22 org --> "The 'xxxx' component instance doesn't have an identifier specified."

This is a change on the ComponentInstance type. To fix it, add an identifier to your component instance: <flexiPageRegions> <itemInstances> <componentInstance> ...
Alba Rivas's user avatar
  • 2,561
18 votes
Accepted

Property 'componentInstances' not valid in version 49.0 but Package.xml is version 48.0

The sourceApiVersion on the sfdx-project.json is what controls what API certain CLI commands use. You can change this to 48.0 and deploy if you'd like (even to an Org on 49.0 that may have changed the ...
Kris Goncalves's user avatar
16 votes
Accepted

How to get an LWC component on a record page to refresh when that page is updated

ADDED wire service getWorkingDays is dependent on record.id. So, this wire will invoke again only when record.id changes. But, although getRecord service is invoked every-time record is updated, its ...
salesforce-sas's user avatar
14 votes
Accepted

How to pass URL parameters to a Lightning App page, to load LWC in context of a record?

There is native support for query parameters in LWC. To persist, their names need to have namespace added as a prefix. Default namespace is c__. In this example: /lightning/n/MyAppPage?recordId=...
auu's user avatar
  • 341
10 votes

Problem when deploying FlexiPages on Winter '22 org --> "The 'xxxx' component instance doesn't have an identifier specified."

Below is just from me testing this new feature with retrievals/deployments. The issue in this question will only occur for the following scenario: You have your flexipage metadata in source control ...
Kris Goncalves's user avatar
7 votes
Accepted

Lightning Components: DOM-Functions behave different on new vs. existing record

This is because there are actually 2 instances of your div/component in the DOM tree after a new Account is created. If you change your div to have class="te2" instead of an id and then in your ...
TrevorBliss's user avatar
  • 3,833
7 votes
Accepted

How are local edits of packaged Lighting flexi-pages handled when a package is updated?

Lightning Pages aren't really subscriber-editable. It's a mirage. When the subscriber performs what really does look, in the UI, like an edit to a packaged FlexiPage, they're actually cloning the ...
David Reed's user avatar
  • 93.2k
6 votes

How to get an LWC component on a record page to refresh when that page is updated

Given @salesforce-sas's answer (patiently built up iteratively with me) the following points should be noted: My implementation's chaining of wired service calls was broken and here's why... As a bit ...
Phil W's user avatar
  • 37k
6 votes

Lightning Components: DOM-Functions behave different on new vs. existing record

cmp.find("te2").getElement() I would use cmp.find() instead of document.getElement(). This is because cmp.find() is the native Lightning API for finding the DOM To make this work, you have to add ...
Mohith Shrivastava's user avatar
6 votes

Sticky Header in Custom Lightning Page Template Component?

I tried to inspect the classes that go behind Salesforce's standard template that make the header stick, but couldn't get it to work as quickly as I preferred, so I got going with my own way. The ...
Lightning Evangelist's user avatar
6 votes
Accepted

How can I change the version of a Flexipage through SFDX?

Change the target API version in your sfdx-project.json file, for example: { "packageDirectories": [ ... ], "sourceApiVersion": "48.0" }
Phil W's user avatar
  • 37k
5 votes

Lightning Components: is there a way to render a Flexipage inside an other Lightning Component yet? Or roadmap? Or never?

Yes, a flexipage is actually a Lightning component (flexipage:page) and a very powerful one. I've asked the product manager for Lightning Pages to comment here on roadmap plans for access="global"ing ...
Doug Chasman's user avatar
  • 10.1k
5 votes
Accepted

Redirect to custom object tab in lightning

You can use standard__navItemPage (Navigation Item Page Type) with lightning:navigation here. Refer to the documentation for pageReference Types those are utilized with the component for details. From ...
Jayant Das's user avatar
  • 30.6k
5 votes

Property 'componentInstances' not valid in version 49.0 but Package.xml is version 48.0

This is a change with the v49.0 summer 21 release. Meaning you won't be able to use v48.0 version of the metadata in the v49.0 org unless you push with v48.0 in sfdx-project. Once all the orgs are ...
Mohith Shrivastava's user avatar
5 votes

How to pass URL parameters to a Lightning App page, to load LWC in context of a record?

For persistence, I would recommend using location history hash also known as a fragment identifier it can easily be added by accessting wht browser's location object: location.hash = 'your hash' . ...
glls's user avatar
  • 20.2k
4 votes
Accepted

I don't see Custom Component in App Builder

Looking at the screenshot and searching for the Lightning Tree component in appexchange led me to this github source for the component It seems to be an open source reusable component that you can ...
Vamsi Krishna Gosu's user avatar
4 votes

Can I put a package's LWC that uses other custom LWCs from the package in a flexipage for a custom object?

It seems there is a significant bug in the Lightning Platform infrastructure. While it should be possible to include the LWC component hierarchy in the flexipage it appears there's a namespace ...
Phil W's user avatar
  • 37k
4 votes

Deploy Flexipage Assignment

Flexipage assignment on org default level can be deployed with ActionOverride metadata. It is a nested metadata inside CustomObject metadata type. From the documentation: To set a Lightning page ...
tugce's user avatar
  • 2,737
4 votes
Accepted

Is there a way to deactivate a Flexipage from the command line?

No, if you've set it as a default for an App or Org Yes, if you've only assigned the page based on app, record type, and profile. The caveat above is because as soon you have a lightning page that is ...
Kris Goncalves's user avatar
4 votes
Accepted

How can I deploy my flexi-page via change sets?

In order to add Flexi Page into change set look for Lightning Page in Component type
Ghulik's user avatar
  • 71
3 votes
Accepted

Why did my lightning components stop showing up on my record pages in my scratch org after including my namespace?

This has been identified as a bug. Known issue: https://success.salesforce.com/issues_view?id=a1p3A000001SosdQAC
Vaibhav Baluni's user avatar
3 votes
Accepted

Lightning component included in tab

Let me offer you another approach. Instead of trying to figure out where a component is dropped, think about exposing a design attribute on your component that will allow users to show or hide the ...
smukov's user avatar
  • 5,613
3 votes

Sticky Header in Custom Lightning Page Template Component?

Answer Surround your region that will contain the Highlights Panel component in the region-header class in your .cmp file. For example: <aura:component implements="lightning:recordHomeTemplate" ...
connorjtoth's user avatar
3 votes

Lightning Components: is there a way to render a Flexipage inside an other Lightning Component yet? Or roadmap? Or never?

It's been three years and ten releases since this question was posted, and still no signs of flexipages being exposed as first-class objects. I frankly don't understand what is meant by the answer ...
kamezaburo's user avatar
3 votes

Lightning Components: is there a way to render a Flexipage inside an other Lightning Component yet? Or roadmap? Or never?

At this point, it is not possible to utilize Lightning Pages (Flexipages) as a programmatic building block for use in your own components. Ultimately, it's something we'd like to do eventually since ...
Eric Jacobson's user avatar
3 votes

Activate Lightning Record Page via Metadata API

Not sure if this was possible at the time you wrote this post but it now is and can be achieved by using the following in an applications/AppName.app metadata file: <profileActionOverrides> ...
iLLuZion's user avatar
3 votes

Activate Lightning Record Page via Metadata API

I have the same issue and spent quite a lot of time to find the solution. Unfortunately, there are nothing about ability to activate Lightning record page via API. So it turns out that we have only ...
Vladimir's user avatar
3 votes

Is it possible in LEX to show the Related List Contacts on Account-View as List instead of Cards?

This functionality is coming in Spring 17 release. You can edit the page using Lightning App Builder. You can click on the 'Related Lists' (not Related List) component and select the way they need to ...
Balanarayan NT's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible