Help! Copy a Buit-in parameter to a shared parameter

I am trying to copy a built-in parameter (Phase Create) and copy the value (EXISTING) to a Shared parameter. I need to do this to create a schedule with multi-category elements, and I can not use the “Phase created” parameter to filter the schedule.

I have created this script but it is not working at all.

Phase to Existing.dyn (26.1 KB)

Could you guys have a look and try to help me?

Thanks a lot!

if I understand you correctly, you want to copy the Phase Created value on PHASE shared parameter if they’re value is Existing?

edit: try this logic. I used Element.Phases from Clockwork

Thanks a lot man! You solved it!