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
Akis AthanasiadisAkis Athanasiadis 

Bad Filter Id

I have created a visualforce page in order to create the activities tab.
I found through the "create new view" in calendar the ID:
https://cs84.salesforce.com/ui/list/FilterEditPage?ftype=z&retURL=%2F007%3Ffcf%3D00B58000004YXWq%26rolodexIndex%3D-1%26page%3D1

and I created the page by using this code:
<apex:page > 
    <apex:enhancedList listId="3D00B58000004YXW" height="600" customizable="false" rowsPerPage="25"/> 
</apex:page>

Nevertheless, I receive a "bad filter id" message when I try to access the new tab
Best Answer chosen by Akis Athanasiadis
Akis AthanasiadisAkis Athanasiadis
I found the perfect solution for this.
I used the :
<apex:page> <apex:enhancedList type="Activity" height="600" customizable="true" rowsPerPage="25"/>
</apex:page>
That way i receive the activies page and I can create new views as well

All Answers

Raj VakatiRaj Vakati
Hi , 
You need to pass the ID from the URL as shown below . not from the Page where you are creating list view. Use the below SOQL to get all the list view and pass it the listId 

Select Id, Name from Listview
 
URL : 
/007?fcf=00B41000008koig&rolodexIndex=-1&page=1


<apex:page >
    <apex:enhancedList listId="00B41000008koig" height="600" customizable="false" rowsPerPage="25"/> 
        
</apex:page>

 
Akis AthanasiadisAkis Athanasiadis
Hi,
I don't know if I've done something wrong.
If I type :
<apex:page >
    <apex:enhancedList listId="00B41000008koig" height="600" customizable="false" rowsPerPage="25"/> 
        
</apex:page>

I get error message due to insufficient privileges. the problem is a result of the 00B41000008koig.
How do I find this ID. you mentioned previously "Use the below SOQL to get all the list view and pass it the listId"
Where do i use this query in order to find the ID?
Akis AthanasiadisAkis Athanasiadis
I found a way to retrieve the IDs but this results to a specific view.not the url of activities in general.
Akis AthanasiadisAkis Athanasiadis
I found the perfect solution for this.
I used the :
<apex:page> <apex:enhancedList type="Activity" height="600" customizable="true" rowsPerPage="25"/>
</apex:page>
That way i receive the activies page and I can create new views as well
This was selected as the best answer