Skip to main content

Hello folks

 

I am facing issue in lwc component, Scenario is there are 3 async methods , I need values from one method to another method like there is a custom object and getting the records by calling apex test method and I am able to retrieve in account page but same object records are null on the household page because of record id is being conflict. how should i resolve ? any suggestions

2 answers
  1. Sep 26, 2024, 4:18 AM

    Hello Amit,

     

    Option 2 falls under my scenario and implemented this only but didn't work. where one method which calls apex method with account record id on the account page to fetch the custom object records and another method is pulling account record id with separate apex call using the household record id in that method but as soon as I need the record length from the first method with the another account record id it becomes null because it takes household record id instead of account record id from the household page. 

     

    option1 will not work in my case as I need to call same method to retrieve record length with account record id from household page.

     

    thanks for your inputs Amit.

0/9000