Skip to main content

Questions tagged [refreshapex]

The tag has no usage guidance.

22 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
2k views

How to refresh LWC component using getRelatedListRecords when related record edited

I have a component rendering a list of records related to the record on which the component is displayed using getRelatedListRecords (Beta). //Get Related List Records Info @wire(...
MooseAteJack's user avatar
3 votes
1 answer
338 views

@wired method not detecting reactive parameter change when calling refreshApex

I have observed something really weird for which I haven’t found an explanation yet. I have a component (parentComponent) containing a subcomponent (childComponent). The childComponent subcomponent ...
Danny Marfil's user avatar
2 votes
1 answer
393 views

refreshApex in Lightning Web Components is not working

In Custom Object i have new tab with lightning Input, On Save the Form value we need to Display the data in data table. Data is saving in my object, But Data-table is not refreshing with new data. I'...
SFDC_Beginner's user avatar
2 votes
0 answers
2k views

Refresh datatable using RefreshApex in LWC

I am new to LWC. I have questions regarding refreshApex. I was not able to find answers in the official documentation or other sites. 1) How does refreshApex know which datatable to refresh if there ...
Koustubh's user avatar
  • 1,173
1 vote
0 answers
64 views

Inconsistent wire service cache refresh

I have a parent component with the following html structure: Parent.html <template> <template if:true> <lightning-tabset> <lightning-tab> <lightning-...
BaronVonKissAlot's user avatar
1 vote
0 answers
2k views

Refresh Parent LWC on button Submit

Please read me out before marking my question as duplicate :pray I have a situation where I want to refresh my parent LWC on submit button. I have created an event to communicate from my child ...
Nupur Bhagat's user avatar
0 votes
0 answers
74 views

i am not getting the updated record in datatable after saving the inline edits in lwc

import { LightningElement, track, wire } from 'lwc'; import getAccountNames from '@salesforce/apex/fetchKidsClubsName.getAccountNames'; import getKidsClubRecords from '@salesforce/apex/...
Sridhar Nikhil's user avatar
0 votes
0 answers
280 views

getrelatedlistrecords is not getting refreshed

@wire(getRelatedListRecords, { parentRecordId: '$recordId', relatedListId: 'Histories', fields: '$fieldHistory', }) wiredFieldHistory({data, error}){ if (data) {...
shruti rawat's user avatar
0 votes
0 answers
199 views

refreshApex() is refreshing the data but is not invoking the function decorated with wire

An LWC component uses wire service to make a callout to an external system during page load. Users are able to refresh the data by clicking the Refresh button on the UI, which invokes handleRefresh(). ...
Akif's user avatar
  • 15
0 votes
2 answers
370 views

Why wire adapted doesn't retrieve data?

@wire(fetchCustomSettings) wiredData; renderedCallback() { if (this.wiredData) { console.log('this.wiredData ##', this.wiredData.data); refreshApex(this.wiredData); ...
Fark's user avatar
  • 27
0 votes
1 answer
4k views

Refresh data table in lwc after showToast

I have an lwc which has lightning-dataTable that displays the files related list for a particular case record. As part of the 'Delete" action, I am calling apex method which deletes the selected ...
Suhasini's user avatar
  • 307
0 votes
0 answers
660 views

Trying to use Spring '23 RefreshView API from an Aura component to refresh wire data in LWC

I'm trying to use the new RefreshView API introduced in Spring '23 to fire a refresh event from an Aura component to refresh a related list wire in an LWC component (very similar scenario to this ...
Trevor Gill's user avatar
0 votes
0 answers
88 views

refreshApex not working

I have a custom lwc that needs to refreshApex once a certain button is clicked but it's not working for me. It also doesn't get recalled when I change some of its parameters: LWC: wiredZC; @wire (...
molinet's user avatar
  • 925
0 votes
0 answers
1k views

LWC Apex Refresh not working

I have been struggling to understand why my HTML is not rendering Fresh Stream of Data using Apex Refresh. I've used the cacheable method in Apex. @AuraEnabled(cacheable = true) public static ...
wink's user avatar
  • 17
0 votes
1 answer
481 views

LWC @wire works only if page is refreshed, not when I use navigation arrows

I have a checkbox that updates another field in another page. I got a problem with @wire. To get refreshed data I need to refresh the whole page manually pressing F5. If I switch to another navigation ...
Igor Oliveira's user avatar
0 votes
0 answers
1k views

refreshApex not working in lwc datatable after update

I am using lwc datatable to get task records which are related to Account and Lead. Then i am using row action to display task details and update the task. Once i am updating the task, i am marking ...
sfdc_to_learn's user avatar
0 votes
1 answer
591 views

Retrieving an Updated Read-Only Value (Case.IsClosed) In OnSuccess of LWC - refreshApex, event payload unsuccessful

I am writing a LWC to replace the Case Close screen which is not available in Lightning if Case Tracking is on. In the lightning-record-edit-form the user sets the Case Status field. Some of the ...
Bob Hatcher's user avatar
0 votes
0 answers
349 views

Updating lightning web component on record update

I have a lightning web component added to a custom object's lightning record page.That lightning record page also has standard record detail as one of the components.Whenever record is updated using ...
Sindhuja's user avatar
  • 155
0 votes
2 answers
1k views

Using LWC refreshApex after component is rendered

Do you have any idea if there is a way to call refreshApex after component was rendered? Let's say we will have a mobile page in the app and I want to have the newest data everytime I open the page on ...
sebgy's user avatar
  • 43
0 votes
1 answer
231 views

refreshcapex in LWC is not triggered when I am calling it from child component

<c-datatablelwc config={config} onrowaction={handleRowAction} > </c-datatablelwc> datatablelwc is a utility LWC which holds the standard datatable component, actually it is also has one ...
Uday's user avatar
  • 45
0 votes
0 answers
142 views

refreshApex not working inside Modal LWC?

My requirement is, whenever user uploads a file inside Modal, its record should get shown in a table below upload option. I am able to run 'refreshApex' outside Modal successfully, but when i write ...
Mohit K's user avatar
  • 766
0 votes
1 answer
148 views

RefreshApex throwing error

I am creating Dependent combo box using refresh apex. The second apex method is being called but in the UI i get an error message as below I implemented the solution as mentioned in here Can't ...
Rajesh's user avatar
  • 43