How to get a filter's ID from the name in javascript

Hello all

var FS = execution.getProcessEngineServices().getFilterService();
var queryFilter = FS.createFilterQuery().filterName(“All Tasks”).getId();

The above .getId() throws an error.
How can I get the filter’s ID?

Thanks so much