Two questions. I have an Email template for Case object. Basically I was able to add many fields in the case object itself using {!relatedTo.casefieldname}
format. Now I need to add some case owner information like owner name, role etc... But when I add user role like,
{!relatedTo.Owner.UserRole}
it keep showing me an ID only, not an exact value. Not sure how can I achieve this?
Next question is i also need to add an URL within the template itself. So I hard coded the URL. But when we generate the email, the hard coded url is scrambled. So any best practices to hard code URL?