Foreach, and macros fail to properly set the model name, however MAP will work. It is the only method I could use to get it to work: | rest /servicesNS/-/-/data/lookup-table-files | table author title | where like(author, "%martens") AND like(title, "%mlspl%") | eval title = replace(title, "__mlspl_", "") | eval title = replace(title, ".csv", "") | table title| map maxsearches=15 search="| savedsearch ApplyModelBySavedSearch modelName=$title$" where the savedsearch … | apply $modelName$ | rename "predicted(fieldToPredict)" as predicted:$modelName$
... View more