Include lookup field in function

Include lookup field in function

Hi 

I have two forms (A and B) connected with a bidirectional lookup. I want to copy records from one to another including the value from another lookup (from form Country) which they both include. So far the function looks like this:

  1. void copyRecord(string First_Name, string Last_Name, string Email, string Profession)
  2. {
  3.     insert into New_Profile
  4.     [
  5.         Added_User = zoho.loginuser
  6.         First_Name = input.First_Name
  7.         Surname = input.Last_Name
  8.         Email = input.Email
  9.         Profession = input.Profession
  10.     ]
  11. }

How do I include the Country if it's a lookup field?

Thanks