loop through all the columns in a structure

im trying to call a SP for each attribute i have in a structure i created, so i want to know if its possible to loop through all the attributes of a structure, for each attribute in the structure i will need to call a SP if the value of the attribute is different to null.

Hello Carlos,

I am trying understand what you want. If you are thinking in get attributes from structs and iterates with them dynamically, it is not possible, unless via extension. If you build a extension you are able to read the attributes from an "object" using C# and reflection. So otherwise you not be able to get attributes names and values dynamically in side Outsystems program.

OR
Maybe you can transform the struct in a json and than you get the string, but I think it is a "bad code".



Best Regards,
Paulo Ricardo