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
Radha Rathinavel 1Radha Rathinavel 1 

Hi, I have a question, I need to search the data only what I posted /created in my object. Now, it is searching for all the data, including which other's posted/created.

Hi,
I have a question, I need to search the data only what I posted /created in my object. Now, it is searching for all the data, including which other's posted/created.
NitishNitish
Hi Radha,

Use WHERE CreatedByID := UserInfo.getUserId in you SOQL query from where you are fetching the data.

Thanks,
Nitish Singh,
nitishsingh.sfdc@gmail.com
Radha Rathinavel 1Radha Rathinavel 1
I am using a global search in community page. How can we achieve this? Radha Rathinavel Pandian Software Engineer III | MST SOLUTIONS M | +91.890.341.7204 [cid:ba780530-ee5a-4bb7-ae24-de05d6eafcd2]
NitishNitish
Hi Radha,

No its not possible. Global search will return all the records as per your sharing setting.

The only oprion you have is to create custom search box using Lightning Component and Place it in your communtiy.

Note:- *Mark as solved if this answer is helpful*

Thanks,
Nitish Singh,
nitishsingh.sfdc@gmail.com