function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Akash Lavaniya 7Akash Lavaniya 7 

Salesforce database Issue

Hi All,
I am  trying to retrieve Select Id, Name from ListView Where sObjectType ='Task' ,this is giving me list of listviews in result but whenever i a trying retrieve Select Id, Name from ListView Where sObjectType='Task' AND Name='Recently Completed Task' --> that is giving me 0 result. 
Can someone please assist me o this issue.


Thanks
Akash Lavaniya
Gangadhar T 15Gangadhar T 15
Hello Akash,

I hope this will help you.                 
SELECT Id,DeveloperName,name FROM ListView WHERE SObjectType = 'Activity' and DeveloperName = 'TodaysTasks'
    
Thank You,
www.nubeselite.com
Development | Training | Consulting

Please mark this as solution if your problem is solved.
 
Akash Lavaniya 7Akash Lavaniya 7
Hi Gangadhar


This query is retrieve only active filters but i want to retrieve the task filter by giving the particular name of filter in where clause like 'Select Id,Name from List View where sObjectType='Task' AND Name='Recently Completed tasks''.


Thanks You
Akash Lavaniya