Changing worksets with element.setparameterbyname node

Im trying to change all space worksets with the Element.SetParameterByName but i keep getting an error. What is it that im doing wrong. I feel as though it is something so small. (see Attached screenshot)

Hi @Michael_Renaud , you must feed it the workset itself (first output of the " get worksets" node) not its name which is just a string .

Thanks for the reply still in the learning stages of dynamo!