Fetching Records from another Applciation

Fetching Records from another Applciation

hello

I am trying to fetch records from another application

Current application name is SMAT
Application trying to fetch record from is HR Training, below is what I have tried but getting an error on the first line.

x = hr_training.employee_details.employee_name[ID == input.Employee_Details];
//input. refers to fields in current form
input.Email_1 = x.Email; 

Any Help would be greatly appreciated

Kind Regards

Amanda