• Kiran Jain 15
  • NEWBIE
  • 30 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 14
    Questions
  • 4
    Replies
Hello Guys,
I want to call my aura Cmp method when notification is coming on detail page. there is any way from that I can figure out Nofifaction Event is coming on detail page.

It's very urgent for me.
Thanks In Advance
 
Hello friends,
I am looking a guy who has experience about Omni Channel.I have setup Omni Channel in my sendbox org but it's not working as expected.
My Requirment is that
#1. I have some cases in my Queues backlog Tab And Skill backlog as well and some cases has been  waiting for 1 Month that is oldest one and

#2.  when I insert new case from case record page after setting the queue it goes in queue backlog and when I transfered or close any exisiting case then newly created case is coming in my omni widget.

#3. I have searched on google but didn't find any solution.

I want to oldest case should be come in omni widget inseted of new one.

Please Friends help me to achieve this requirment. It's really really very Important for me.Your response would be appreciated to me.

Thanks In Advance
Hi Folks,
I have stucked in an requirement.  I have a autolunched flow that update  Opportunity Type From Aura Component.
In Aura Component, I have a input field in which I put Opportunity Type Value and the moment I press the button my Aura component call to flow and update Opportunity Value.
Everything is working fine but problam is after flow finish, flow header and Finish Message show on screen Like Below.
User-added imageMy Requirment is that When I call to flow at that time the flow header and finish message should not show on screen. It will seem like Hide flow. I have found out on google but Didn't get any right way.can someone help me to solve it.

Here is my Lightning Code.
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,
                            force:hasRecordId,lightning:availableForFlowScreens"
                access="global" >
    
    <aura:attribute name="oppType" type="boolean" /> 
    
    
    <lightning:flow aura:id="flowData" onstatuschange="{!c.statusChange}"/>
    
    
    <div>
                <lightning:input type="text" name="text" label="Opportunity Type" value="{!v.oppType}"/>
                <lightning:button label="Submit" name="next" variant="brand" onclick="{!c.handleNextStage}"/>
     </div>
    
    
</aura:component>
 
({
	handleNextStage : function(component, event, helper) {
       var flow = component.find("flowData");
         var inputVariables = [
             {
                name : "recordId",  
                type : "String",
                value : component.get('v.recordId')
             },
             
             {
                name : "OpportunityType",  
                type : "String",
                value :  component.get('v.oppType')
             },
             
              
           ];
            
            flow.startFlow("update_Opportunity_Type",inputVariables);
             component.set('v.oppType','');
            },
            
     
             
      statusChange : function (component, event) {
              
        if (event.getParam('status') === "FINISHED_SCREEN") {
             $A.get("e.force:refreshView").fire();
              
         }
    }
})

Your help will be appreciated.
Thanks In Advance
 
Hi Experts,
I am finding a solution of How to refresh lwc when any change is occurred in apex. In Lwc Component I am showing Contact records and I want to auto refresh when any changes is occurred in Apex.
I have no any apex class linked by lwc. my Lwc is inDepandent.
when I click a button at that time my Cmp is refreshing and getting new records but When any update is occurred in apex (LIke Via Trigger or user doing query and manually  update records in apex) at that time my Lwc automatic get refresh.

I hope someone will help me.
I will be greatfull.
Thanks In Advance
hy experts,
I have a custom setting in which a custom field UserName__c.I want to store userName in custom setting field when any user is insert. but simply when i set username from trigger and tried to insert custom setting I got below error.
Duplicate Value Found: SetupOwnerId Duplicates Value On Record With Id
I have goggled many time but not got any specific answer.
can someone tell me what mistake I made. below is my trigger referance.
 
if(trigger.isAfter && trigger.isInsert){
        list<test_Setting__c> lstSetting = new list<test_Setting__c>();
        for(user u : trigger.new){
            test_Setting__c testSetting = new test_Setting__c();
            testSetting.UserName__c = u.userName;
            lstSetting.add(testSetting);
         } 
        if(lstSetting.size() > 0){
            insert lstSetting; 
        }
       
    }
Thanks In Advance


 
hello Experts,
I am getting error while calling apex method from Js but working fine while calling from apex another method or anonymous window.
I am trying to get listView records through listView Id.
I am getting this error => [Status=Unauthorized, StatusCode=401]
Below is my Resources.
Here is my Apex Method
@AuraEnabled(cacheable = true)
       public static void getListviewFilters1(String filterId) {
        HttpRequest req = new HttpRequest();
	    String baseUrl = URL.getSalesforceBaseUrl().toExternalForm();
        system.debug('baseUrl : ' + baseUrl);
	   String endPoinURL = baseUrl+'/services/data/v52.0/sobjects/Account/listviews/'+ filterId +'/describe';
	    req.setEndpoint(endPoinURL);
	    req.setMethod('GET');
        system.debug('req BeforeHeader : ' + req);
           req.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId());
           req.setHeader('Accept', 'application/json');
           system.debug('req afterHeader : ' + req);
        
	       Http http = new Http();
	       HttpResponse response = http.send(req);
        system.debug('response : ' + response);
		
	if( response.getStatusCode() == 200 ) {
		system.debug(response.getBody());
        Map<String, Object> tokenResponse = (Map<String, Object>) JSON.deserializeUntyped(response.getBody());
        String query = (String) tokenResponse.get('query');
		System.debug(query);
        List<Account> AccountList = new List<Account>();
        for(Account accountObj : database.query(query)){
		AccountList.add(accountObj);
		}
    	system.debug(AccountList.size());
     
	}
	   }

Here is my Lightning Resources
<aura:component controller="ListViewNewVersionInLwcCtrl">
    <aura:attribute name="firstName" type="String" default="world"/>
    <lightning:button label="Call server" onclick="{!c.echo}"/>
</aura:component>


-----------------------------------------------------------------

({
    "echo" : function(cmp) {
        var action = cmp.get("c.getListviewFilters1");
        action.setParams({ filterId : '00B5g000002WfNSEA0' });
        action.setCallback(this, function(response) {
            var state = response.getState();
            alert(state);
            if (state === "SUCCESS") {
                alert("From server: " + response.getReturnValue());
       }
            else if (state === "INCOMPLETE") {
            }
            else if (state === "ERROR") {
                var errors = response.getError();
                if (errors) {
                    if (errors[0] && errors[0].message) {
                        console.log("Error message: " + 
                                 errors[0].message);
                    }
                } else {
                    console.log("Unknown error");
                }
            }
        });
      $A.enqueueAction(action);
    }
   
})

Please help to achieve this requirement. It's very urgent.
It will be best markable.

Thanks In advance
 
Hy Experts,
I have a batch class that send an  email on updated contact record,that is calling  from scheduler and  scheduler is calling from after  update on Contact.
My Problam is that I'm not updating any contact still my Batch is running  and sending email.
Below is my resources.
//Trigger
trigger maintrigger on Contact (after update) {
    //public static String CRON_EXP = '2 0 0 2 6 ? 2022';
	//DateTime dtTemp = Datetime.now().addMinutes(1);
	DateTime dtTemp = Datetime.now().addSeconds(30);
String hour = String.valueOf(dtTemp.hour());
String min = String.valueOf(dtTemp.minute()); 
String ss = String.valueOf(dtTemp.second());
String nextFireTime = ss + ' ' + min + ' ' + hour + ' * * ?';
    Map<id,contact> IdContactMap=new Map<Id,contact>();
    for(Contact con:trigger.new){
        if(con.email!=Null){
            IdContactMap.put(con.id,con);
        }
    }
    if(IdContactMap.size() > 0){
     String jobId = System.schedule('call scheduable apex class', nextFireTime, new MailToNewContactSch(IdContactMap));
    }

}
 
global class MailToNewContactSch implements Schedulable {
    
     Map<id,contact> IdContactMap=new Map<Id,contact>();
    public MailToNewContactSch( Map<id,contact> contactIdMap) {
        IdContactMap = contactIdMap;
    }
/*String sch2 = '5 * * * ?';
scheduledQuoteReminderBatchable sqrb2 = new scheduledQuoteReminderBatchable();
system.schedule('Every Hour plus 5 min', sch2, sqrb2);*/

    global void execute(SchedulableContext sc) { 
       MailToNewContact mailNewConBatch =  new MailToNewContact(IdContactMap);
       Database.executeBatch(mailNewConBatch, 200);
    }
}
 
global class MailToNewContact implements Database.Batchable<sObject>
{
    Map<id,contact> IdContactMapBatch=new Map<id,contact>();
    global MailToNewContact(Map<id,contact> IdContactMap){
        IdContactMapBatch=IdContactMap;
    }
    global Database.QueryLocator start(Database.BatchableContext BC)
    {
        return Database.getQueryLocator([SELECT id,firstname,email from contact where id in:IdContactMapBatch.keySet()]);
    }
    global void execute(Database.BatchableContext BC, List<Contact> scope) {     
        for(Contact con : scope)
        {    
            system.debug('con.email : ' + con.email);
           Messaging.SingleEmailMessage email=new Messaging.SingleEmailMessage();
               email.setToAddresses(new string[] {con.email});
               email.setSubject('Welcome Mail from this org');
               email.setPlainTextBody('Welcome Your Contact Is Created Successfully In Salesforce');
           Messaging.sendEmail(new Messaging.SingleEmailMessage[] {email});
        }
    }
    global void finish(Database.BatchableContext BC)
    {
    }
}

please help me to achieve this requirment.
Thanks in advance
hy Experts,
I'm stuck in weird error. In calling a apex method from anonymous window,it's working fine but when i call it from js it's throwing error like this [Status=Unauthorized, StatusCode=401] .
I'm  little confused what's the main issue.
can somebody help me to solving it and tell me cause why it's throwing error.
I.m passing listViewId and getting listView Records.
Below is my Code
@AuraEnabled(cacheable = true)
    public static void getListviewFilters(String filterId) {
        HttpRequest req = new HttpRequest();
	    String baseUrl = URL.getSalesforceBaseUrl().toExternalForm();
        
	    String endPoinURL = baseUrl+'/services/data/v52.0/sobjects/Account/listviews/'+ filterId +'/describe';
	    req.setEndpoint(endPoinURL);
	    req.setMethod('GET');
        req.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId());
        
	       Http http = new Http();
	       HttpResponse response = http.send(req);
        system.debug('response : ' + response);
		
	if( response.getStatusCode() == 200 ) {
		Map<String, Object> tokenResponse = (Map<String, Object>) JSON.deserializeUntyped(response.getBody());
		String query = (String) tokenResponse.get('query');
		System.debug(query);
        List<Account> AccountList = new List<Account>();
        for(Account accountObj : database.query(query)){
		AccountList.add(accountObj);
		system.debug('accountObj : ' + accountObj);
        }
    	system.debug(AccountList.size());
        
	}
	}

Below is my Js Code
<aura:component controller="ListViewNewVersionInLwcCtrl">
    <aura:attribute name="firstName" type="String" default="world"/>
    <lightning:button label="Call server" onclick="{!c.echo}"/>
</aura:component>


--------------------------------------------------------------------------------------

({
    "echo" : function(cmp) {
        var action = cmp.get("c.getListviewFilters1");
        action.setParams({ filterId : '00B5g000002WfNSEA0' });
        action.setCallback(this, function(response) {
            var state = response.getState();
            alert(state);
            if (state === "SUCCESS") {
                alert("From server: " + response.getReturnValue());
       }
            else if (state === "INCOMPLETE") {
            }
            else if (state === "ERROR") {
                var errors = response.getError();
                if (errors) {
                    if (errors[0] && errors[0].message) {
                        console.log("Error message: " + 
                                 errors[0].message);
                    }
                } else {
                    console.log("Unknown error");
                }
            }
        });
      $A.enqueueAction(action);
    }
})

Thanks In advance
hello Peers,
I am stuck in a requirement. My requirement is that when any record is update from detail page then my lwc will  call.
lwc is also on detail page.
If it were in aura, we could use force:recordData but in lwc it not works.

please anybody suggest me what should I do.
it's urgent for me.
Thank in advance
Hy Experts,
I have a batch class that send an  email on updating contact record,that is calling  from scheduler and  scheduler is calling from after  update on Contact.
My Problam is that I'm not updating any contact still my Batch is running  and sending email.
Below is my resources.
//Trigger
//Trigger
//Trigger
trigger maintrigger on Contact (after update) {
    //public static String CRON_EXP = '2 0 0 2 6 ? 2022';
    //DateTime dtTemp = Datetime.now().addMinutes(1);
    DateTime dtTemp = Datetime.now().addSeconds(30);
String hour = String.valueOf(dtTemp.hour());
String min = String.valueOf(dtTemp.minute()); 
String ss = String.valueOf(dtTemp.second());
String nextFireTime = ss + ' ' + min + ' ' + hour + ' * * ?';
    Map<id,contact> IdContactMap=new Map<Id,contact>();
    for(Contact con:trigger.new){
        if(con.email!=Null){
            IdContactMap.put(con.id,con);
        }
    }
    if(IdContactMap.size() > 0){
     //   String jobId = System.schedule('call scheduable apex class', nextFireTime, new MailToNewContactSch(IdContactMap));
    }

}
I have commented that part  in trigger from where scheduler is calling but still is running and sending email.
//Scheduler
global class MailToNewContactSch implements Schedulable {
    
     Map<id,contact> IdContactMap=new Map<Id,contact>();
    public MailToNewContactSch( Map<id,contact> contactIdMap) {
        IdContactMap = contactIdMap;
    }
/*String sch2 = '5 * * * ?';
scheduledQuoteReminderBatchable sqrb2 = new scheduledQuoteReminderBatchable();
system.schedule('Every Hour plus 5 min', sch2, sqrb2);*/

    global void execute(SchedulableContext sc) { 
        system.debug('current time : ' + system.now());
        system.debug('IdContactMap : ' + IdContactMap);
       // MailToNewContact mailNewConBatch =  new MailToNewContact(IdContactMap);
       // Database.executeBatch(mailNewConBatch, 200);
    }
}
//Batch
global class MailToNewContact implements Database.Batchable<sObject>
{
    Map<id,contact> IdContactMapBatch=new Map<id,contact>();
    global MailToNewContact(Map<id,contact> IdContactMap){
        IdContactMapBatch=IdContactMap;
    }
    global Database.QueryLocator start(Database.BatchableContext BC)
    {
        return Database.getQueryLocator([SELECT id,firstname,email from contact where id in:IdContactMapBatch.keySet()]);
    }
    global void execute(Database.BatchableContext BC, List<Contact> scope) {     
        for(Contact con : scope)
        {    
            system.debug('con.email : ' + con.email);
           Messaging.SingleEmailMessage email=new Messaging.SingleEmailMessage();
               email.setToAddresses(new string[] {con.email});
               email.setSubject('Welcome Mail from this org');
               email.setPlainTextBody('Welcome Your Contact Is Created Successfully In Salesforce');
           Messaging.sendEmail(new Messaging.SingleEmailMessage[] {email});
        }
    }
    global void finish(Database.BatchableContext BC)
    {
    }
}

Please  help me  to resolving it.
Thanks in advance



 
Hello Peers,
Greeting
I am stuck in a lightning requirement.I want to show action button in listView page but I am not getting any solution. can anybody help me to solve this query.

Thanks in advance
hello experts,
I am getting some problam for set up inbound scheduling.
I am refering a trailhead link below. I don't know where should I use HTML code that is copied from embedded service and how to setup inbound scheduling.and how to connect this html code with schedular.

https://trailhead.salesforce.com/en/content/learn/modules/multi-resource-concurrent-and-inbound-scheduling-with-lightning-scheduler/set-up-inbound-scheduling-for-existing-customers?trail_id=appointment-booking-with-lightning-scheduler
can anybody help me to solving this issue.

thanks in advance
 
Hello Experts,
I am facing a challenge. I want to listView data that is shared with user.
I ran following query but it's fetch all records of listView.
list<listView> lstListView = [SELECT Id, Name, DeveloperName, SobjectType FROM ListView
                                      WHERE sobjectType ='Account' ORDER by DeveloperName Asc];
I want listView data that is shared with user.I need this data into lwc.
You  avoid apex if it's possible.
It's very urgent for me.
Thanks in Advance

 
Hello Experts,
I want to fetch object icon with object api Name using apex. I have tried  with  following code and I am also getting objects Name and its icon but Problam is that Icon name is not coming Properly. some Icon is coming but some icon is not.
Actually I am fetching all objects that is referanced with related to(WhatId) Fields of Task Object.
public with sharing class MultiObjectLookupControllerV1 {
    public static Map < String, String > mapRefObjApiWiseLabel;
    @AuraEnabled(cacheable = true)
    public static lookupWrapper fetchLookupWrapper(){
        lookupWrapper olookupWrapper = new lookupWrapper();
        olookupWrapper.ObjectsMap = MultiObjectLookupControllerV1.TaskReltedToObjects();
        olookupWrapper.objectApiWiseIcon = MultiObjectLookupControllerV1.fetchObjectsIcon();
        return olookupWrapper; 
        
    } 
    
    private static map<string,string> fetchObjectsIcon(){
        map<string,string> mapObjectsWiseIcons = new map<string,string>();
        
        List<Schema.DescribeTabSetResult> tabSetDesc = Schema.describeTabs();
        
        List<Schema.DescribeTabResult> tabDesc = new List<Schema.DescribeTabResult>();
        Map<string,List<Schema.DescribeIconResult>> mapSchemaObjWiseIconDescri = new Map<string,List<Schema.DescribeIconResult>>();

        for(Schema.DescribeTabSetResult tsr : tabSetDesc) { 
            tabDesc.addAll(tsr.getTabs());
        }
		Map<String,String> mapObjects = mapRefObjApiWiseLabel;
        set<string> lstObjects = mapObjects.keySet();
        system.debug('lstObjects : ' + lstObjects.size());
        system.debug('tabDesc : ' + tabDesc.size());
        
        integer count= 0;
       set<string> setUniqueObj = new set<string>();
        for(Schema.DescribeTabResult tr : tabDesc) {
            system.debug('sobjectName : ' + tr.getSobjectName());
            if( lstObjects.Contains(tr.getSobjectName()) ) {
                if(!setUniqueObj.contains(tr.getSobjectName())){
                setUniqueObj.add(tr.getSobjectName());
                if( tr.isCustom() == true ) {
                     mapSchemaObjWiseIconDescri.put(tr.getSobjectName(),tr.getIcons());
                } else {
                    if(tr.getSobjectName() == 'Order'){
                       system.debug('tr.getIcons() : ' + tr.getIcons()); 
                        system.debug('tr : ' + tr); 
                    }
                    system.debug('tr.getSobjectName() : ' + tr.getSobjectName());
                    mapObjectsWiseIcons.put(tr.getSobjectName(),'standard:' + tr.getSobjectName().toLowerCase());
                    }
                
               }
            }
            }
       
        
        system.debug('setUniqueObj :  ' + setUniqueObj.size());
        system.debug('mapObjectsWiseIcons size : ' + mapSchemaObjWiseIconDescri.size());
        system.debug('mapObjectsWiseIcons size : ' + mapObjectsWiseIcons.size());
      
        
        for(string obj : lstObjects){
        if(mapSchemaObjWiseIconDescri.containsKey(obj)){
        for(Schema.DescribeIconResult ir : mapSchemaObjWiseIconDescri.get(obj)){
            //if (ir.getContentType() == 'image/svg'){ 
            if (ir.getContentType() == 'image/svg+xml'){
                string cObjIconData = 'custom:' + ir.getUrl().substringBetween('custom/','.svg').substringBefore('_');
                 mapObjectsWiseIcons.put(obj,cObjIconData);
               } 
        }
        }
       }
         
        system.debug('mapObjectsWiseIcons size() : ' + mapObjectsWiseIcons.size());
        system.debug('mapObjectsWiseIcons : ' + mapObjectsWiseIcons);
        return mapObjectsWiseIcons;
    }
    
   
    private static  Map<String,String> TaskReltedToObjects() {
         mapRefObjApiWiseLabel = new Map < String, String >();
        
		Schema.DescribeFieldResult f = Schema.sObjectType.Task.fields.WhatId;
		for(Schema.SObjectType reference : f.getReferenceTo()) {
            string objApiName = reference.getDescribe().getName();
            string objLabel = reference.getDescribe().getLabel();
            string objLabelPlural = reference.getDescribe().getLabelPlural();
   			if(objApiName != 'Goal' && 
               objApiName != 'LocationWaitlistedParty' && 
               objApiName != 'WorkCoaching' && 
               objApiName != 'Metric'){
		mapRefObjApiWiseLabel.put( objApiName, objLabelPlural );
               }
		}

		system.debug('mapReferenceObjects size() : ' + mapRefObjApiWiseLabel.size());
        system.debug('mapReferenceObjects : ' + mapRefObjApiWiseLabel.keyset());
        return mapRefObjApiWiseLabel;
    }

    public class lookupWrapper{
        @AuraEnabled  public Map<String,String> ObjectsMap;
        @AuraEnabled  public Map<String,String> objectApiWiseIcon;
        }
}


above is my apex code. I am getting all referanced object of related to field but when It comes to Icon, only some Icon is getting. I want both custom object and standard object Icon.

If I get Order Object than its icon is coming standard:order whereas orignal Icon name is standard:orders that is referance following link.

https://www.lightningdesignsystem.com/icons/
I want all Icon Name so that I could show that in lookup. I am building a lookup Like Related to Field Of Task Object.


Thanks In Advance

hello Experts,
I am getting error while calling apex method from Js but working fine while calling from apex another method or anonymous window.
I am trying to get listView records through listView Id.
I am getting this error => [Status=Unauthorized, StatusCode=401]
Below is my Resources.
Here is my Apex Method
@AuraEnabled(cacheable = true)
       public static void getListviewFilters1(String filterId) {
        HttpRequest req = new HttpRequest();
	    String baseUrl = URL.getSalesforceBaseUrl().toExternalForm();
        system.debug('baseUrl : ' + baseUrl);
	   String endPoinURL = baseUrl+'/services/data/v52.0/sobjects/Account/listviews/'+ filterId +'/describe';
	    req.setEndpoint(endPoinURL);
	    req.setMethod('GET');
        system.debug('req BeforeHeader : ' + req);
           req.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId());
           req.setHeader('Accept', 'application/json');
           system.debug('req afterHeader : ' + req);
        
	       Http http = new Http();
	       HttpResponse response = http.send(req);
        system.debug('response : ' + response);
		
	if( response.getStatusCode() == 200 ) {
		system.debug(response.getBody());
        Map<String, Object> tokenResponse = (Map<String, Object>) JSON.deserializeUntyped(response.getBody());
        String query = (String) tokenResponse.get('query');
		System.debug(query);
        List<Account> AccountList = new List<Account>();
        for(Account accountObj : database.query(query)){
		AccountList.add(accountObj);
		}
    	system.debug(AccountList.size());
     
	}
	   }

Here is my Lightning Resources
<aura:component controller="ListViewNewVersionInLwcCtrl">
    <aura:attribute name="firstName" type="String" default="world"/>
    <lightning:button label="Call server" onclick="{!c.echo}"/>
</aura:component>


-----------------------------------------------------------------

({
    "echo" : function(cmp) {
        var action = cmp.get("c.getListviewFilters1");
        action.setParams({ filterId : '00B5g000002WfNSEA0' });
        action.setCallback(this, function(response) {
            var state = response.getState();
            alert(state);
            if (state === "SUCCESS") {
                alert("From server: " + response.getReturnValue());
       }
            else if (state === "INCOMPLETE") {
            }
            else if (state === "ERROR") {
                var errors = response.getError();
                if (errors) {
                    if (errors[0] && errors[0].message) {
                        console.log("Error message: " + 
                                 errors[0].message);
                    }
                } else {
                    console.log("Unknown error");
                }
            }
        });
      $A.enqueueAction(action);
    }
   
})

Please help to achieve this requirement. It's very urgent.
It will be best markable.

Thanks In advance
 
hy Experts,
I'm stuck in weird error. In calling a apex method from anonymous window,it's working fine but when i call it from js it's throwing error like this [Status=Unauthorized, StatusCode=401] .
I'm  little confused what's the main issue.
can somebody help me to solving it and tell me cause why it's throwing error.
I.m passing listViewId and getting listView Records.
Below is my Code
@AuraEnabled(cacheable = true)
    public static void getListviewFilters(String filterId) {
        HttpRequest req = new HttpRequest();
	    String baseUrl = URL.getSalesforceBaseUrl().toExternalForm();
        
	    String endPoinURL = baseUrl+'/services/data/v52.0/sobjects/Account/listviews/'+ filterId +'/describe';
	    req.setEndpoint(endPoinURL);
	    req.setMethod('GET');
        req.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId());
        
	       Http http = new Http();
	       HttpResponse response = http.send(req);
        system.debug('response : ' + response);
		
	if( response.getStatusCode() == 200 ) {
		Map<String, Object> tokenResponse = (Map<String, Object>) JSON.deserializeUntyped(response.getBody());
		String query = (String) tokenResponse.get('query');
		System.debug(query);
        List<Account> AccountList = new List<Account>();
        for(Account accountObj : database.query(query)){
		AccountList.add(accountObj);
		system.debug('accountObj : ' + accountObj);
        }
    	system.debug(AccountList.size());
        
	}
	}

Below is my Js Code
<aura:component controller="ListViewNewVersionInLwcCtrl">
    <aura:attribute name="firstName" type="String" default="world"/>
    <lightning:button label="Call server" onclick="{!c.echo}"/>
</aura:component>


--------------------------------------------------------------------------------------

({
    "echo" : function(cmp) {
        var action = cmp.get("c.getListviewFilters1");
        action.setParams({ filterId : '00B5g000002WfNSEA0' });
        action.setCallback(this, function(response) {
            var state = response.getState();
            alert(state);
            if (state === "SUCCESS") {
                alert("From server: " + response.getReturnValue());
       }
            else if (state === "INCOMPLETE") {
            }
            else if (state === "ERROR") {
                var errors = response.getError();
                if (errors) {
                    if (errors[0] && errors[0].message) {
                        console.log("Error message: " + 
                                 errors[0].message);
                    }
                } else {
                    console.log("Unknown error");
                }
            }
        });
      $A.enqueueAction(action);
    }
})

Thanks In advance
hello Peers,
I am stuck in a requirement. My requirement is that when any record is update from detail page then my lwc will  call.
lwc is also on detail page.
If it were in aura, we could use force:recordData but in lwc it not works.

please anybody suggest me what should I do.
it's urgent for me.
Thank in advance