GetRequestDomain() replaced by IP when using Timer
Application Type
Service Studio Version
11.10.18 (Build 41211)


I am using GetRequestDomain() to build a link to my site in the body of an email. This code is in a server action. I have a test page with a button that calls this server action which works correctly - the full url of my site with the domain name is in the link. However, I have a timer set to call this server action. The email generated from the timer replaces the domain with 

Does anyone know why this would happen??



Hi Michael,

Functions like GetServerName() or GetRequestDomain() return localhost when used inside timers or emails. You should create an input for the Emailscreen instead and pass the URL value to it.

Check out the solution given in this post.



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.