I may need to post more here but let me try and explain what I’m doing.
I have a script that creates Filters for specific elements and assigns them do a specific view. that all works fine.
However I’ve tried to develop this further so that it checks what filters already exists and only creates the ones that are missing (this is so that we can have certain filters in the template file but can then quickly add to them).
However when the script runs for some reason the ParameterFilterElement.ByRules is duplicating the element ID of the first filter in my ‘existing’ list - can anyone shed any light on why this might be occurring?