Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Sorry for the late reply, but it was figured out. We had to do this:
DataCommand command = new DataCommand();
command.ConnectionString = CoreConfiguration.Instance.Connection.AppDatabase;
command.CommandText = "[cms_LanguageInfoLoadAll]";
command.Parameters = new DataParameters
{
new DataParameter("ApplicationId", AppContext.Current.ApplicationId, DataParameterType.UniqueIdentifier)
};
DataTable loadTable = DataService.LoadTable(command);
DataRowCollection languages = loadTable.Rows;
Instead of callingLanguage.GetAllLanguagesDT().Rows
I'm trying to get a all the languages that are available in Commerce from CMS. I'm using
but I'm getting
System.NullReferenceException: Object reference not set to an instance of an object.
every time I look to access it. Any suggestions would be greatly appreciated.