Duplicate Schedules

Hello im creating a script for duplicating a schedules. but seems something of. nothing appear after i run it. can help me checking my script ?

here my script

Hi @m.alimiDE3M9 and welcome :wink: hard to say, but why not just use the ootb node View.DuplicateView

any advise i can see the reference for that ?

yeah sure

Thanks but for the SOVI_active_view how do i find it ? seems not in my packages

just use ootb, with current document node and ootb current view, or the ootb selector views, or as you already do with categories