Get Yes/No Parameter from element

I see lots of threads on setting Yes/No parameters, but I just need to extract a Yes/No parameter and have it populate a spreadsheet. When I use LookupParameter, I get nulls. And it’s NoneType parameter, so I can’t use AsString, AsInteger, AsStringValue.
How can I get the spreadsheet to populate either true/false or 0/1 for the elements?

If LookupParameter doesn’t return anything, there is most likely a difference between the parameter’s actual name and the name you are providing. Could it also be possible that you are trying to access a type parameter from the base element (not its ElementType)?

1 Like