Casting IList object in PriceAgent

In the “CreatePriceAgentFactory” im adding some IList values to the properties. Like this:

var filter = baseProduct.Fields.GetValue<IList>(“Filter”);
result.Properties.Add(“Filter”, filter);

How do I fetch the value of the object in my specific PriceAgent File? I’ve been trying to get it as:
as IEnumerable
as IList

etc. But the value gets null when casting. What am I missing?

Litium version: 6.3.7

Don’t you need to define any type in the IList?

I do, got nothing to work. But now I just use the object as an object :upside_down_face: Works for now.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.