First you have to identified the order of Dialing by name : Firs and Last or last and First for Auto Attendant. Then go to action, double click 5 and choose DialbyName option.