How do you reference the value represented by a bidirectional field?
I'm trying to wright a custom schedule script that references the email addresses to send to, from a form where the email address is populated from a bidirectional relation.
My script errors I assume because it is receiving the ID number from the bidirectional field instead of the actual email address value I have the child form display.
Here is the code I'm trying to run:
- temp="";
for each x in CRS[Received == false]
{
temp = x.Report_Type;
for each e in Test_Staff_Roles[Notice]
{
eml = e.CIC_Email.toString();
sendmail
[
from:zoho.adminuserid
to:eml
subject:x.Report_Type
message:temp
content type:HTML
]
}
}