fetch lookup data in email notification

fetch lookup data in email notification

Hello.
I don't understand what's wrong, please help:
I have Form1 named "ICD" with lookup field "surgeon" to  field "surgeon_add" in other form named "Surgeons_add .
So i tried to fetch data to  show the actual data in lookup  field on email notification
form ICD > On Success:

  1. surgeons  =  ICD  [ID == surgeon];
  2. test = surgeons.surgeon;

then in sendmail I tried all variations

  1. sendmail
  2. [
  3. from:zoho.adminuserid
  4. to:"ill@gmx.com"
  5. subject:"123"
  6. message:test + "<br />\n" + surgeons + "<br />\n" + surgeons.ID + "&nbsp;<br />\n" + surgeons.surgeon
  7. content type:HTML
  8. ]
In script builder this code are:

  1. <%=test%>
  2. <%=surgeons%>
  3. <%=surgeons.ID%> 
  4. <%=surgeons.surgeon%>


Mail text: 

null
ICD[ No Matching ]
null 
null

I tried this advice, but it's also not work
In script builder:
  1. input.surgeon.surgeon_add

Error at line number : 1 
surgeon_add doesn't exist in surgeon fields dependency form Surgeons_add

In forms and reports data show me correctly.
Any ideas?