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
丹 朱丹 朱 

How to open Account Search Page by code?

I wrote a code. The code can open new Account page。
createRecordType: function(component, event, helper) {
      var createRecordEvent = $A.get("e.force:createRecord");
      createRecordEvent.setParams({
         "entityApiName": "Account"
      });
      createRecordEvent.fire();
   }

Now,I want to open Account Search Page, How can I do it?

User-added image
Who can help me? Thank you!!!
Raj VakatiRaj Vakati
If you can ceate a Account search as a component you can able to do it ... 

Other wise if you use global search there no way to do an URL hack