HR Workspace: Email Client Template “To” field not populating from custom string field

cronnewall
Tera Contributor

Hi,

I have an Email Client Template on sn_hr_core_case.
In the To field i use: 

javascript:current.u_external_email ? current.u_external_email : current.opened_for.email

u_external_email is a string field containing a valid email address.

The behavior I'm seeing is:

  • In Classic UI:

    • If u_external_email is filled -> To is populated correctly.

    • If empty → falls back to opened_for.email.

  • In HR Workspace:

    • If u_external_email is filled -> To field is empty.

    • If empty → fallback to opened_for.email works.

So Workspace seems to ignore the custom string field but accepts opened_for.email.

Is this a limitation in Workspace email client?
Can Workspace only resolve certain reference fields for recipients?
What is the supported way to populate the To field from a custom email field?

 

Thanks!

1 REPLY 1

tomasscerba
Mega Sage

Hi @cronnewall ,

 

Not sure, but maybe it's worth trying. I highly doubt that these "elder" way of doing scripts will accept new ECMA scripts like "TERNARY". Switch to old plain JavaScript and see if it will be working.

 

Please mark helpful if this rosolves your problem.