I currently have a Sitecore form that has only one field, an email field. When submitted it sends an automated email to the email address inputted by the user. In the email body, I have a controller rendering that calls a view. The controller rendering has some logic in code behind that requires the current contact. I should be able get the contact through the use of an identifier as stated in this documentation The Identifier I've used is the Tracker.Current.ContactId
, I need to get this contactId in the controller but my biggest hurdle is that the Tracker.Current
is NULL when the email is being sent resulting to the logic being skipped.
I expect that I would be able to get the GUID when I called the Tracker.Current.ContactId
from the controller. It was stated in an answer as well here that the Tracker.Current should be accessible. How come I am unable to access this?
I'm using Sitecore 9 update 1