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
9 votes

refreshView for Lightning Web Component?

I had this issue myself today as well. In my case, I had a Quick Action Lightning Aura Component which enveloped a Lightning Web Component (because there is currently no way of using a Lightning Web ...
Koen Wesselman's user avatar
9 votes
Accepted

How do you Expand All/Collapse All in lightning:accordion

You can show or hide all sections using activeSectionName attribute. Also allowMultipleSectionsOpen should be set to true. Sample code: COMPONENT: <aura:attribute name="activeSections" type="List"...
salesforce-sas's user avatar
7 votes
Accepted

refreshApex in lwc doesn't seem to work

It will actually work but as its cacheable (or cached to be precise) apex method, the wired function imperativeWire will be invoked ONLY if the apex method response changes/modified. However every ...
salesforce-sas's user avatar
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
  • 36.2k
5 votes
Accepted

Risks of deploying My Domain before the upcoming instance refresh?

1) In our internal emails, we reference {!Case.Link}. Will that automatically update to the My Domain? Will old links properly redirect to the My Domain URL, like in this? My Domain Gotchas? Links ...
sfdcfox's user avatar
  • 491k
5 votes
Accepted

Lightning RefreshView event not working on record detail page

So now that I understand correctly your problem, I have a better answer. This is a known issue. You can subscribe to it to receive a notification once it's fixed.
Fabien Taillon's user avatar
5 votes
Accepted

Refresh a LWC after record data is edited

Instead of using Apex, use Lightning Data Service to get the data. This also demonstrates the use of importing field tokens, which are used for getRecord and getFieldValue. The magic of this code is ...
sfdcfox's user avatar
  • 491k
4 votes
Accepted

Lightning: reload component on submit

Your custom components won't magically refresh even when you fire refreshViewEvent. In all your custom components you have to implement the handler for refreshView and then call the initilizeMethod ...
Pranay Jaiswal's user avatar
4 votes

refreshView for Lightning Web Component?

Starting in Winter '21, you'll be able to use getRecordNotifyChange() function to refresh your record page from a lightning web component. getRecordNotifyChange is working almost the same way force:...
Fabien Taillon's user avatar
4 votes
Accepted

How to handle events from LWC datatable custom data types

Finally got through it. I had to dispatch event with composed and bubbles attributes as follows. const event = CustomEvent('refresh', { composed: true, bubbles: true }); this.dispatchEvent(...
Isuru Buddhika Herath's user avatar
3 votes

How to refresh the parent page after a Save action in a Visualforce page embedded in a page layout?

@Rao's answer works for me in Classic as of Winter '17 release. But if you have a form the user is submitting and you get back errors you may not want the page to have opened in the parent frame, ...
Doug Ayers's user avatar
  • 4,186
3 votes

Lightning recordForm displaying stale data

I don't have documented proof of this, but I've also explored something similar to this and found these results, hopefully they point you in the right direction: Per documentation, lightning:...
tsalb's user avatar
  • 3,735
3 votes
Accepted

Load data without a page refresh

pullReportOP appears to be an apex:actionFunction. You need to specify the reRender attribute on this element, not on your a anchor. Despite the JavaScript-y nature of apex:actionFunction, if you don'...
sfdcfox's user avatar
  • 491k
3 votes

e.force:refreshView not refreshing component view

As @BrianMiller stated, $A.get('e.force:refreshView') only updates the standard components on the current lightning page. But that's because those components are listening for the event. I was able ...
Jason Clark's user avatar
  • 11.9k
3 votes
Accepted

LWC - how to refresh radio button group after handleEvent & Submit button completed?

If you add a 'value' property to your radio group as shown below, you can clear it at the point in your javascript that you want to reset it. <lightning-radio-group name="verifyOptions" label=...
Dominic Baker's user avatar
3 votes
Accepted

How to refresh one component from another component that saves the record in lwc

You can use the new Lightning Message Service, this is the alternative to the pub-sub model. You can publish a message from Component B post your operation and make Component A as a subscriber and ...
ssoundiran's user avatar
3 votes
Accepted

Pros and Cons of Sandbox delete vs refresh

Deleting and creating requires either two licenses, or the loss of use of the sandbox (because you have to delete before creating to use just one license). Refreshing, on the other hand, requires just ...
sfdcfox's user avatar
  • 491k
3 votes
Accepted

LWC Button Icon Name is not displayed sometime during page load:

This is a known issue and already reported to Salesforce and Chromium. I hope it will be resolved very soon. Already 122 people including me have reported it, you can also do so. In Chrome version 84,...
Rahul Gawale's user avatar
  • 12.2k
3 votes
Accepted

lwc component does not refresh when navigating back to it from record page

Components that are loaded are cached when you use NavigationMixin. So, when you navigate to different page from custom component, the current state of you component is stored in cache and the next ...
salesforce-sas's user avatar
3 votes

It is Possible to Generate Access Token without using Username and Password?

Yes, there is such a possibility. What I understood so far, is that your needs are some server-server integration without additional interaction of the user. OAuth 2.0 JWT Bearer Flow for Server-to-...
Oleksandr Berehovskyi's user avatar
3 votes
Accepted

How to use refreshApex on Parent Components?

To use refreshApex, you need to have the original wire response instead of using { data, error }. getAccountsResponse; @wire(getAccounts) accDetails(response){ this.getAccountsResponse = response; ...
sfdcfox's user avatar
  • 491k
2 votes
Accepted

Refresh a pageBlockTable inside the tab using button

Please refer to the changed code below: Code: <apex:tab label="Info" name="info" id="info"> <apex:form id="tabForm1"> <apex:commandbutton value="Refresh" reRender="pgTbl0"/...
Dnyanesh KC's user avatar
2 votes
Accepted

How to refresh synchronized data extension to see new fields?

I figured this out. Go to Contact Builder --> Data Sources --> Synchronized --> Contacts. Find the data extension, click edit fields, find the new field that was added in salesforce, check the box ...
Peachy's user avatar
  • 323
2 votes

How to refresh synchronized data extension to see new fields?

Under Contact Builder --> Data Sources --> Syncronized --> Contacts You'll see a trickle sync icon on the top right .. see the screenshot below -
Maneesh's user avatar
  • 2,166
2 votes

How to set up a filtered data extension that refreshes each time automated email is run

You'll need to create a Filter Activity in Interactions. Once you have one of those, you can add a refresh in your Automation.
Adam Spriggs's user avatar
  • 30.6k
2 votes

What merge field can we use in an email template to get the Instance needed to generate a URL to an internal knowledge article?

There's an ancient "API version substring" hack described for example on https://developer.salesforce.com/forums/?id=906F000000096wuIAA, experiment with it a bit? If it won't work in the email ...
eyescream's user avatar
  • 24.1k
2 votes

Lightning recordForm displaying stale data

I STAND CORRECTED! Apparently, we have an undocumented feature that will force the reload of data. Details are here: Forcing a refresh in force:recordData But basically, just pass a parameter (doesn'...
Greg Rewis's user avatar
2 votes

Managed package version on Sandbox refresh?

Yes, the version of all packages will reflect the versions of Production if you refresh from Production, even if it is an older version.
sfdcfox's user avatar
  • 491k
2 votes

Managed package version on Sandbox refresh?

Managed package version will not get changed if you refresh it from Production. You need to install the managed package for sandbox specific version to upgrade it to higher version. Managed packages ...
Santanu Boral's user avatar

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