Access content of generic record list from within .NET extension

Access content of generic record list from within .NET extension

  

Hi, I have an action in a .NET extension that should be able to receive a list record, from which the record type is not known in development time, and process all elements in it. Basically, I want to be able to go through the list and, for each record, get the name and the value of each attribute. 

I'm aware that the Forge component XML Records does something like this. Is its source code a good example of how to do it or do you know of better approaches?

Thanks in advance!


Greetings, pedro

Solution

Hi Pedro,

There's also SortRecordList and ArdoJSON, though I'm not completely sure they support the new List type of P10 (I think XML Records does handle it). You use .NET reflection to find out the structure, but it used to be easier before the P10 "List of type".

Solution

Hi Kilian, thanks. I'll take a look at those two also.