search for last text where it came from appointment