I have created A Sitecore Scheduled Task to send email. I have to read some settings from a Sitecore Dictionary but receiving only key not value.

After debugging I have found that Sitecore.Context is null.

Could any one suggest how I can get dictionary values if have no Sitecore.Context on controller action?

  • Have you tried to use Sitecore.Globalization.Translate.TextByLanguage("", Language.Parse("yourlanguage");? – Marek Musielak Aug 7 '18 at 6:54
  • What Sitecore version do you have ? On old version was a bug, dictionary.dat is not updated on publishing. – Vlad Iobagiu Aug 7 '18 at 8:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.