I want to retrieve the Lead Records Based on Selected View.
for Example
if Selected View is "My open Leads" it Retrieved records only from that view.
but if View is "All Leads" now it Retrieved only from All Leads view.
i want this in java script.
Muhammad Sohail