Hi All,
In dll,
public class ErrorMessage
{
public string type { get; set; }
public string code { get; set; }
public string category { get; set; }
public string message { get; set; }
public string status { get; set; }
}
public List<ErrorMessage> errorMessages { get; set; }
in ax,
CLRObject ListError = new CLRObject(/System.Collections.Generic.List`1[System.Object]/);
ClrObject enumeratorError;
IT_ZatcaIntegration.ErrorMessage errorMessage = new IT_ZatcaIntegration.ErrorMessage();
if(ListError)
{
enumeratorError = ListError.GetEnumerator();
while (enumeratorError.MoveNext())
{
// errorMessage = enumeratorError.get_Current();
integrationLineLog.ErrorCategory = errorMessage.get_category();
integrationLineLog.ErrorCode = errorMessage.get_code();
integrationLineLog.ErrorMessage = errorMessage.get_message();
integrationLineLog.ErrorStatus = errorMessage.get_status();
integrationLineLog.ErrorType = errorMessage.get_type();
integrationLineLog.insert();
}
}
while reading the list from dll in ax i am facing the below error message.
Could anyone please help me on this to resolve this issue?